mirror of https://github.com/ceph/ceph-ansible.git
purge: remove potential socket leftover
This commit ensure we remove any socket left by ceph and the
`ceph-osd-run.sh` script.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1861755
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 5e91e0f3e2
)
pull/5708/head
parent
f31258d604
commit
a88f911155
|
@ -778,7 +778,7 @@
|
||||||
- ansible_pkg_mgr == 'apt'
|
- ansible_pkg_mgr == 'apt'
|
||||||
- purge_all_packages == true
|
- purge_all_packages == true
|
||||||
|
|
||||||
- name: remove config
|
- name: remove config and any ceph socket left
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -786,6 +786,7 @@
|
||||||
- /etc/ceph
|
- /etc/ceph
|
||||||
- /etc/keepalived
|
- /etc/keepalived
|
||||||
- /etc/haproxy
|
- /etc/haproxy
|
||||||
|
- /run/ceph
|
||||||
|
|
||||||
- name: remove logs
|
- name: remove logs
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -651,13 +651,15 @@
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: purge ceph directories for "{{ ansible_hostname }}"
|
- name: purge ceph directories for "{{ ansible_hostname }}" and ceph socket
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- /etc/ceph
|
- /etc/ceph
|
||||||
- /var/log/ceph
|
- /var/log/ceph
|
||||||
|
- /run/ceph
|
||||||
|
- "{{ ceph_osd_docker_run_script_path | default('/usr/share') }}/ceph-osd-run.sh"
|
||||||
|
|
||||||
- name: remove ceph data
|
- name: remove ceph data
|
||||||
shell: rm -rf /var/lib/ceph/*
|
shell: rm -rf /var/lib/ceph/*
|
||||||
|
|
Loading…
Reference in New Issue