]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 3 Dec 2019 12:29:52 +0000 (13:29 +0100)
If the container binary is podman, we shouldn't try to stop docker here.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/purge-docker-cluster.yml

index 468cdea85df7bc58a85df00f74b6b77b4c217d9f..d9aa4b0124393b0ddafc804988651f9651184d27 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