ignore_errors: true
- name: wait for server to boot
+ become: false
local_action: wait_for port=22 host={{ inventory_hostname }} state=started delay=10 timeout=400
- name: remove data
- name: is reboot needed
local_action: shell echo requesting reboot
+ become: false
notify:
- restart machine
- wait for server to boot
# 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
ini_file:
- dest: /etc/ceph/ceph.conf
+ dest: /etc/ceph/{{ cluster }}.conf
section: mon.{{ ansible_host }}
option: host
value: "{{ ansible_host }}"