Skip to content

Commit

Permalink
purge: add remove_docker tag
Browse files Browse the repository at this point in the history
This can help to skip docker removal tasks

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit ff39c8d)
  • Loading branch information
clwluvw authored and guits committed Sep 14, 2021
1 parent 0ede37b commit 0a93de9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infrastructure-playbooks/purge-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,8 @@
- not is_atomic
- container_binary == 'docker'
ignore_errors: true
tags:
- remove_docker

- name: remove docker on debian/ubuntu
apt:
Expand All @@ -976,6 +978,8 @@
update_cache: yes
autoremove: yes
when: ansible_facts['os_family'] == 'Debian'
tags:
- remove_docker

- name: red hat based systems tasks
block:
Expand Down Expand Up @@ -1019,6 +1023,8 @@
when:
ansible_facts['os_family'] == 'RedHat' and
not is_atomic
tags:
- remove_docker

- name: find any service-cid file left
find:
Expand Down Expand Up @@ -1078,6 +1084,8 @@
- name: remove docker data
shell: rm -rf /var/lib/docker/* # noqa 302
when: not is_atomic | bool
tags:
- remove_docker


- name: purge fetch directory
Expand Down

0 comments on commit 0a93de9

Please sign in to comment.