From: Seena Fallah Date: Mon, 16 Aug 2021 20:37:40 +0000 (+0430) Subject: purge: add remove_docker tag X-Git-Tag: v6.0.15~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=432ab37c6b6bf97627d63440c4f26c34df2b8e98;p=ceph-ansible.git purge: add remove_docker tag This can help to skip docker removal tasks Signed-off-by: Seena Fallah (cherry picked from commit ff39c8d70b7326f4215d32e78e2f89b632b07008) --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 89af7dae0..5cfe18650 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -969,6 +969,8 @@ - not is_atomic - container_binary == 'docker' ignore_errors: true + tags: + - remove_docker - name: remove docker on debian/ubuntu apt: @@ -977,6 +979,8 @@ update_cache: yes autoremove: yes when: ansible_facts['os_family'] == 'Debian' + tags: + - remove_docker - name: red hat based systems tasks block: @@ -1020,6 +1024,8 @@ when: ansible_facts['os_family'] == 'RedHat' and not is_atomic + tags: + - remove_docker - name: find any service-cid file left find: @@ -1079,6 +1085,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