Skip to content

Commit ba88eda

Browse files
authored
CI: Add images removal for tests (#817)
Signed-off-by: Sagi Shnaidman <[email protected]>
1 parent 6c2dda7 commit ba88eda

File tree

1 file changed

+15
-2
lines changed
  • tests/integration/targets/podman_container/tasks

1 file changed

+15
-2
lines changed

tests/integration/targets/podman_container/tasks/main.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,10 +1416,23 @@
14161416
- "container3"
14171417
- "testidem-pod"
14181418
- "container_tls"
1419+
- "container2_tls"
14191420

14201421
- name: Remove pod
1421-
shell: podman pod rm -f testidempod
1422-
ignore_errors: true
1422+
containers.podman.podman_pod:
1423+
executable: "{{ test_executable | default('podman') }}"
1424+
name: testidempod
1425+
state: absent
1426+
1427+
- name: Remove podman images
1428+
containers.podman.podman_image:
1429+
name: "{{ item }}"
1430+
state: absent
1431+
loop:
1432+
- alpine:3.7
1433+
- alpine
1434+
- alpine:3.20
1435+
- alpine:3.12
14231436

14241437
- name: Remove temporary rootfs directory
14251438
ansible.builtin.file:

0 commit comments

Comments
 (0)