From 1e7fd9fe36d220ed56cfec889d885384c54373a2 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 26 Nov 2019 16:18:28 +0100 Subject: [PATCH] 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 (cherry picked from commit b18476a1a6ff23550ca3b36864771f7afbfaf373) --- infrastructure-playbooks/purge-docker-cluster.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infrastructure-playbooks/purge-docker-cluster.yml b/infrastructure-playbooks/purge-docker-cluster.yml index 21d6d9112..8bcd72936 100644 --- a/infrastructure-playbooks/purge-docker-cluster.yml +++ b/infrastructure-playbooks/purge-docker-cluster.yml @@ -550,7 +550,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