Skip to content

Commit

Permalink
purge-dashboard: remove cid files
Browse files Browse the repository at this point in the history
This adds the service cid file cleanup as supported in the classic purge
playbook since b9dd253

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1786691

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit cddc23f)
  • Loading branch information
dsavineau committed Sep 8, 2021
1 parent 1626caa commit ac6604a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions infrastructure-playbooks/purge-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,13 @@
enabled: no
failed_when: false

- name: remove node_exporter service file
- name: remove node_exporter service files
file:
name: /etc/systemd/system/node_exporter.service
name: "{{ item }}"
state: absent
loop:
- /etc/systemd/system/node_exporter.service
- /run/node_exporter.service-cid

- name: remove node-exporter image
command: "{{ container_binary }} rmi {{ node_exporter_container_image }}"
Expand Down Expand Up @@ -109,12 +112,15 @@

- name: remove systemd service files
file:
name: "/etc/systemd/system/{{ item }}.service"
name: "{{ item }}"
state: absent
loop:
- alertmanager
- prometheus
- grafana-server
- /etc/systemd/system/alertmanager.service
- /etc/systemd/system/prometheus.service
- /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
command: "{{ container_binary }} rmi {{ item }}"
Expand Down

0 comments on commit ac6604a

Please sign in to comment.