]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: remove /var/lib/ceph
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 31 May 2023 13:17:55 +0000 (13:17 +0000)
committerTeoman ONAY <tonay@redhat.com>
Wed, 31 May 2023 21:07:13 +0000 (23:07 +0200)
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 <gabrioux@redhat.com>
infrastructure-playbooks/purge-cluster.yml

index 92cf99b7010617ab71e89d0fd77148fe42ef19d9..c992f9468cf540c84f3976bc29e5c5d165b4a0d4 100644 (file)
           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