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 <seb@redhat.com>
(cherry picked from commit 38dc20e74b)
pull/3107/head
Sébastien Han 2018-08-27 11:02:59 -07:00
parent 724c39b9a0
commit 6db4fceba4
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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