mirror of https://github.com/ceph/ceph-ansible.git
purge-dashboard: remove cid files
This adds the service cid file cleanup as supported in the classic purge playbook sincepull/6878/headb9dd253
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1786691 Signed-off-by: Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commitcddc23f511
)
parent
688a673c48
commit
befe57d017
|
@ -74,10 +74,13 @@
|
||||||
enabled: no
|
enabled: no
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: remove node_exporter service file
|
- name: remove node_exporter service files
|
||||||
file:
|
file:
|
||||||
name: /etc/systemd/system/node_exporter.service
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
loop:
|
||||||
|
- /etc/systemd/system/node_exporter.service
|
||||||
|
- /run/node_exporter.service-cid
|
||||||
|
|
||||||
- name: remove node-exporter image
|
- name: remove node-exporter image
|
||||||
command: "{{ container_binary }} rmi {{ node_exporter_container_image }}"
|
command: "{{ container_binary }} rmi {{ node_exporter_container_image }}"
|
||||||
|
@ -109,12 +112,15 @@
|
||||||
|
|
||||||
- name: remove systemd service files
|
- name: remove systemd service files
|
||||||
file:
|
file:
|
||||||
name: "/etc/systemd/system/{{ item }}.service"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop:
|
loop:
|
||||||
- alertmanager
|
- /etc/systemd/system/alertmanager.service
|
||||||
- prometheus
|
- /etc/systemd/system/prometheus.service
|
||||||
- grafana-server
|
- /etc/systemd/system/grafana-server.service
|
||||||
|
- /run/alertmanager.service-cid
|
||||||
|
- /run/prometheus.service-cid
|
||||||
|
- /run/grafana-server.service-cid
|
||||||
|
|
||||||
- name: remove ceph dashboard container images
|
- name: remove ceph dashboard container images
|
||||||
command: "{{ container_binary }} rmi {{ item }}"
|
command: "{{ container_binary }} rmi {{ item }}"
|
||||||
|
|
Loading…
Reference in New Issue