From: Sébastien Han Date: Wed, 13 Sep 2017 23:07:04 +0000 (-0600) Subject: purge: only purge specific directories for mon X-Git-Tag: v3.0.0rc8^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ba3e3b6cc7225c7afe268053af7c6627036355e8;p=ceph-ansible.git purge: only purge specific directories for mon Handles the case when a mon is collocated with an OSD. Closes: https://github.com/ceph/ceph-ansible/issues/1877 Signed-off-by: Sébastien Han --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 759c1652b..df82a3587 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -450,8 +450,17 @@ - name: remove monitor store and bootstrap keys file: - path: /var/lib/ceph/ + path: "{{ item }}" state: absent + with_items: + - /var/lib/ceph/mon + - /var/lib/ceph/bootstrap-mds + - /var/lib/ceph/bootstrap-osd + - /var/lib/ceph/bootstrap-rgw + - /var/lib/ceph/bootstrap-rbd + - /var/lib/ceph/bootstrap-mgr + - /var/lib/ceph/tmp + - name: purge iscsi gateway(s)