]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: remove monitor store and bootstrap keys 646/head
authorSébastien Han <seb@redhat.com>
Thu, 24 Mar 2016 12:49:26 +0000 (13:49 +0100)
committerSébastien Han <seb@redhat.com>
Thu, 24 Mar 2016 14:11:21 +0000 (15:11 +0100)
remove monitor store and bootstrap keys otherwise the play can not
complete

Signed-off-by: Sébastien Han <seb@redhat.com>
purge-cluster.yml

index 63c4c7acbf12392fc34f5e89bf912228634af60a..02913f2d3b40ae2bcab395873222bded570026ef 100644 (file)
     when:
       osd_group_name in group_names
 
+  - name: remove monitor store and bootstrap keys
+    shell: rm -rf /var/lib/ceph/
+    failed_when: false
+    when:
+      mon_group_name in group_names
+
   - name: is reboot needed
     local_action: shell echo requesting reboot
     notify:
       - restart machine
       - wait for server to boot
       - remove data
-    when: 
-      osd_group_name in group_names and 
+    when:
+      osd_group_name in group_names and
       remove_osd_mountpoints.rc != 0
 
   - name: zap osd disks
     when:
       osd_group_name in group_names and
       raw_multi_journal and
-      zap_journal_disks 
+      zap_journal_disks
 
   - name: purge ceph packages with yum
     yum: