Rebooting servers is really intrusive and perhaps this is not what the
operator wants. So we disable the reboot by default now. Note that the
reboot might not happen all the time.
It can be enabled by default by running the purge playbook with -e
reboot_osd_node=True
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1505011
Signed-off-by: Sébastien Han <seb@redhat.com>
vars:
osd_group_name: osds
+ reboot_osd_node: False
hosts:
- "{{ osd_group_name|default('osds') }}"
- restart machine
- wait for server to boot
- remove data
- when: remove_osd_mountpoints.failed is defined
+ when:
+ - reboot_osd_node
+ - remove_osd_mountpoints.failed is defined
- name: see if ceph-disk is installed
shell: "which ceph-disk"