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 <gabrioux@redhat.com>
pull/7431/head
Guillaume Abrioux 2023-05-31 13:17:55 +00:00 committed by Teoman ONAY
parent 5cd692dcdc
commit 23a8bbc6c5
1 changed files with 5 additions and 0 deletions

View File

@ -1088,6 +1088,11 @@
shell: rm -rf /var/lib/ceph/* # noqa 302 shell: rm -rf /var/lib/ceph/* # noqa 302
changed_when: false 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 # (todo): remove this when we are able to manage docker
# service on atomic host. # service on atomic host.
- name: remove docker data - name: remove docker data