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' - 'output.disk_usage.BuilderSize is number'
always: always:
- name: Delete container - name: Delete containers
docker_container: docker_container:
name: "{{ cname }}" name: "{{ item }}"
state: absent state: absent
force_kill: yes force_kill: yes
loop:
- "{{ cname }}"
- "{{ cname2 }}"
- name: Delete volume - name: Delete volume
docker_volume: docker_volume: