Prevent local_action from requiring root

pull/953/head
James Saint-Rossy 2016-09-02 19:31:59 -04:00
parent 9d97ffed30
commit f52be23770
2 changed files with 3 additions and 1 deletions

View File

@ -86,6 +86,7 @@
ignore_errors: true ignore_errors: true
- name: wait for server to boot - name: wait for server to boot
become: false
local_action: wait_for port=22 host={{ inventory_hostname }} state=started delay=10 timeout=400 local_action: wait_for port=22 host={{ inventory_hostname }} state=started delay=10 timeout=400
- name: remove data - name: remove data
@ -310,6 +311,7 @@
- name: is reboot needed - name: is reboot needed
local_action: shell echo requesting reboot local_action: shell echo requesting reboot
become: false
notify: notify:
- restart machine - restart machine
- wait for server to boot - wait for server to boot

View File

@ -23,7 +23,7 @@
# legacy ceph system v init scripts require a mon section in order to work # legacy ceph system v init scripts require a mon section in order to work
- name: add mon section into ceph.conf for systemv init scripts - name: add mon section into ceph.conf for systemv init scripts
ini_file: ini_file:
dest: /etc/ceph/ceph.conf dest: /etc/ceph/{{ cluster }}.conf
section: mon.{{ ansible_host }} section: mon.{{ ansible_host }}
option: host option: host
value: "{{ ansible_host }}" value: "{{ ansible_host }}"