purge: do not try to stop docker when binary is podman

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 b18476a1a6)
pull/4807/head
Guillaume Abrioux 2019-11-26 16:18:28 +01:00 committed by Dimitri Savineau
parent 6592caab08
commit 1e7fd9fe36
1 changed files with 3 additions and 1 deletions

View File

@ -550,7 +550,9 @@
name: docker name: docker
state: stopped state: stopped
enabled: no enabled: no
when: not is_atomic when:
- not is_atomic
- container_binary == 'docker'
ignore_errors: true ignore_errors: true
- name: remove docker on debian/ubuntu - name: remove docker on debian/ubuntu