From ba3e3b6cc7225c7afe268053af7c6627036355e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 13 Sep 2017 17:07:04 -0600 Subject: [PATCH] purge: only purge specific directories for mon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- infrastructure-playbooks/purge-cluster.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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)