mirror of https://github.com/ceph/ceph-ansible.git
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
parent
724c39b9a0
commit
6db4fceba4
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue