Skip to content

Commit

Permalink
purge: rm service-cid files
Browse files Browse the repository at this point in the history
This commit makes sure purge playbooks remove those file if for any reason they
have been left.

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
  • Loading branch information
guits committed Feb 12, 2021
1 parent 980a5a7 commit b9dd253
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions infrastructure-playbooks/purge-container-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,27 @@
ansible_os_family == 'RedHat' and
not is_atomic

- name: find any service-cid file left
find:
paths: /run
patterns:
- "ceph-*.service-cid"
- "rbd-target-api.service-cid"
- "rbd-target-gw.service-cid"
- "tcmu-runner.service-cid"
- "node_exporter.service-cid"
- "prometheus.service-cid"
- "grafana-server.service-cid"
- "alertmanager.service-cid"
register: service_cid_files

- name: rm any service-cid file
file:
path: "{{ item.path }}"
state: absent
with_items: "{{ service_cid_files.files }}"


- name: purge ceph directories

hosts:
Expand Down

0 comments on commit b9dd253

Please sign in to comment.