From: Sébastien Han Date: Mon, 27 Aug 2018 18:02:59 +0000 (-0700) Subject: purge: only purge /var/lib/ceph content X-Git-Tag: v3.2.0beta2~19 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=38dc20e74b89c1833d45f677f405fe758fd10c04;p=ceph-ansible.git purge: only purge /var/lib/ceph content Sometime /var/lib/ceph is mounted on a device so we won't be able to remove it (device busy) so let's remove its content only. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1615872 Signed-off-by: Sébastien Han --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index e3c695352..9f3692abc 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -534,9 +534,7 @@ listen: "remove data" - name: remove data - file: - path: /var/lib/ceph - state: absent + command: rm -rf /var/lib/ceph/* listen: "remove data" tasks: diff --git a/infrastructure-playbooks/purge-docker-cluster.yml b/infrastructure-playbooks/purge-docker-cluster.yml index 6e4057986..b52c491df 100644 --- a/infrastructure-playbooks/purge-docker-cluster.yml +++ b/infrastructure-playbooks/purge-docker-cluster.yml @@ -651,9 +651,11 @@ state: absent with_items: - /etc/ceph - - /var/lib/ceph - /var/log/ceph + - name: remove data + command: rm -rf /var/lib/ceph/* + - name: purge fetch directory