From: Guillaume Abrioux Date: Wed, 31 May 2023 13:17:55 +0000 (+0000) Subject: purge: remove /var/lib/ceph X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23a8bbc6c59d78e982f343c06cfb5fe8e86cb757;p=ceph-ansible.git purge: remove /var/lib/ceph This directory should be removed when the cluster is purged. most of the services are started with the `--security-opt label=disable` option. If the directory is not removed, it can cause SElinux issues when the cluster is redeployed. Signed-off-by: Guillaume Abrioux --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 92cf99b70..c992f9468 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -1088,6 +1088,11 @@ shell: rm -rf /var/lib/ceph/* # noqa 302 changed_when: false + - name: remove /var/lib/ceph + file: + path: /var/lib/ceph + state: absent + # (todo): remove this when we are able to manage docker # service on atomic host. - name: remove docker data