From c6aca384edd262dbe1e88587a4e56d7f303e2bf8 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 28 Dec 2022 16:33:45 +0100 Subject: [PATCH] Delete stopped container as well. --- .../targets/docker_host_info/tasks/test_host_info.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/targets/docker_host_info/tasks/test_host_info.yml b/tests/integration/targets/docker_host_info/tasks/test_host_info.yml index 4dcee3a1..88de0c7e 100644 --- a/tests/integration/targets/docker_host_info/tasks/test_host_info.yml +++ b/tests/integration/targets/docker_host_info/tasks/test_host_info.yml @@ -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: