From 23a8bbc6c59d78e982f343c06cfb5fe8e86cb757 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 31 May 2023 13:17:55 +0000 Subject: [PATCH] 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 --- infrastructure-playbooks/purge-cluster.yml | 5 +++++ 1 file changed, 5 insertions(+) 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