From 4eb83bb7f65a433872ddd4d70364aa927081af1f Mon Sep 17 00:00:00 2001 From: orange-llajeanne <71634751+orange-llajeanne@users.noreply.github.com> Date: Tue, 14 Jun 2022 11:15:34 +0200 Subject: [PATCH] fixes for docker reset (#8966) --- roles/container-engine/docker/tasks/reset.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/container-engine/docker/tasks/reset.yml b/roles/container-engine/docker/tasks/reset.yml index fd74c0ba2..76d125b37 100644 --- a/roles/container-engine/docker/tasks/reset.yml +++ b/roles/container-engine/docker/tasks/reset.yml @@ -40,6 +40,7 @@ - docker - docker.socket - containerd + when: docker_packages_list|length>0 - name: Docker | Remove dpkg hold dpkg_selections: @@ -98,6 +99,7 @@ - /etc/systemd/system/containerd.service.d - /var/lib/docker - /etc/docker + ignore_errors: true # noqa ignore-errors - name: Docker | systemctl daemon-reload # noqa 503 systemd: