]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: only purge specific directories for mon 1892/head
authorSébastien Han <seb@redhat.com>
Wed, 13 Sep 2017 23:07:04 +0000 (17:07 -0600)
committerSébastien Han <seb@redhat.com>
Wed, 13 Sep 2017 23:07:04 +0000 (17:07 -0600)
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 <seb@redhat.com>
infrastructure-playbooks/purge-cluster.yml

index 759c1652b0ba7d9fb48864fc5183b686181974d3..df82a358730078903bb1bce6ce19b4e38d9fc63c 100644 (file)
 
   - 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)