mirror of https://github.com/ceph/ceph-ansible.git
purge-docker-cluster: Remove ceph-osd service
The systemd ceph-osd@.service file used for starting the ceph osd containers is used in all osd_scenarios. Currently purging a containerized deployment using the lvm scenario didn't remove the ceph-osd systemd service. If the next deployment is a non-containerized deployment, the OSDs won't be online because the file is still present and override the one from the package. Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>pull/3764/head
parent
0d45f4d827
commit
7cc626b72d
|
@ -445,11 +445,6 @@
|
||||||
state: absent
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ resolved_parent_device }}"
|
- "{{ resolved_parent_device }}"
|
||||||
|
|
||||||
- name: remove ceph osd service
|
|
||||||
file:
|
|
||||||
path: /etc/systemd/system/ceph-osd@.service
|
|
||||||
state: absent
|
|
||||||
when:
|
when:
|
||||||
- osd_scenario != "lvm"
|
- osd_scenario != "lvm"
|
||||||
|
|
||||||
|
@ -484,6 +479,11 @@
|
||||||
when:
|
when:
|
||||||
- osd_scenario == "lvm"
|
- osd_scenario == "lvm"
|
||||||
|
|
||||||
|
- name: remove ceph osd service
|
||||||
|
file:
|
||||||
|
path: /etc/systemd/system/ceph-osd@.service
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: remove ceph osd image
|
- name: remove ceph osd image
|
||||||
docker_image:
|
docker_image:
|
||||||
state: absent
|
state: absent
|
||||||
|
|
Loading…
Reference in New Issue