]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: do not try to stop docker when binary is podman
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 26 Nov 2019 15:18:28 +0000 (16:18 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 3 Dec 2019 14:57:11 +0000 (09:57 -0500)
If the container binary is podman, we shouldn't try to stop docker here.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit b18476a1a6ff23550ca3b36864771f7afbfaf373)

infrastructure-playbooks/purge-docker-cluster.yml

index 21d6d9112f795ec0c6c5e836d56c44e1c81ed184..8bcd72936fc56eda500fe4f014c7825f67e3ca73 100644 (file)
         name: docker
         state: stopped
         enabled: no
-      when: not is_atomic
+      when:
+        - not is_atomic
+        - container_binary == 'docker'
       ignore_errors: true
 
     - name: remove docker on debian/ubuntu