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>
pull/4805/head
Guillaume Abrioux 2019-11-26 16:18:28 +01:00
parent fe5ffe589e
commit b18476a1a6
1 changed files with 3 additions and 1 deletions

View File

@ -542,7 +542,9 @@
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