From 0a93de938b823aec51ca194ba74d152990175369 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Tue, 17 Aug 2021 01:07:40 +0430 Subject: [PATCH] purge: add remove_docker tag This can help to skip docker removal tasks Signed-off-by: Seena Fallah (cherry picked from commit ff39c8d70b7326f4215d32e78e2f89b632b07008) --- infrastructure-playbooks/purge-cluster.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 4a8fee721..1da4ea4f8 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -968,6 +968,8 @@ - not is_atomic - container_binary == 'docker' ignore_errors: true + tags: + - remove_docker - name: remove docker on debian/ubuntu apt: @@ -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: @@ -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: @@ -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