diff --git a/roles/container-engine/docker/tasks/reset.yml b/roles/container-engine/docker/tasks/reset.yml index 4bca908e6..40d19a4ff 100644 --- a/roles/container-engine/docker/tasks/reset.yml +++ b/roles/container-engine/docker/tasks/reset.yml @@ -6,8 +6,8 @@ - name: Docker | Find docker packages set_fact: - docker_packages_list: "{{ ansible_facts.packages.keys() | select('search', '^docker*') }}" - containerd_package: "{{ ansible_facts.packages.keys() | select('search', '^containerd*') }}" + docker_packages_list: "{{ ansible_facts.packages.keys() | select('search', '^docker+') }}" + containerd_package: "{{ ansible_facts.packages.keys() | select('search', '^containerd+') }}" - name: Docker | Stop all running container shell: "set -o pipefail && {{ docker_bin_dir }}/docker ps -q | xargs -r {{ docker_bin_dir }}/docker kill"