Skip to content

Commit

Permalink
fix python regex matching problem when finding docker packages (kuber…
Browse files Browse the repository at this point in the history
  • Loading branch information
KubeKyrie authored and pedromcpedro committed May 8, 2024
1 parent 4163b85 commit 20972a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/container-engine/docker/tasks/reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 20972a7

Please sign in to comment.