From: Sébastien Han Date: Thu, 26 Oct 2017 12:18:38 +0000 (+0200) Subject: purge: do not reboot by default X-Git-Tag: beta-3.1.0~85^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2837d0a22e258cee583f14e402a99d89c9a16cd6;p=ceph-ansible.git purge: do not reboot by default 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 --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index fe2823815..0d4db1149 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -195,6 +195,7 @@ vars: osd_group_name: osds + reboot_osd_node: False hosts: - "{{ osd_group_name|default('osds') }}" @@ -352,7 +353,9 @@ - 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"