Delete stopped container as well.

This commit is contained in:
Felix Fontein 2022-12-28 16:33:45 +01:00
parent faa7fef504
commit c6aca384ed

View File

@ -341,11 +341,14 @@
- 'output.disk_usage.BuilderSize is number'
always:
- name: Delete container
- name: Delete containers
docker_container:
name: "{{ cname }}"
name: "{{ item }}"
state: absent
force_kill: yes
loop:
- "{{ cname }}"
- "{{ cname2 }}"
- name: Delete volume
docker_volume: