fix python regex matching problem when finding docker packages (#11075)
parent
cc0c3d73dc
commit
8919901ed5
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue