This commit is contained in:
parent
c339ca0fd2
commit
20108076a0
@ -4,7 +4,7 @@
|
|||||||
register: docker_info
|
register: docker_info
|
||||||
|
|
||||||
- name: Stop/Remove all current containers
|
- name: Stop/Remove all current containers
|
||||||
communit.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop: "{{ docker_info.containers | map(attribute='Id') | list }}"
|
loop: "{{ docker_info.containers | map(attribute='Id') | list }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user