1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

CI: Add images removal for tests

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sagi Shnaidman 2024-08-16 14:14:08 +03:00
parent 92fe1464a0
commit 97fbb1eb9b

View file

@ -1416,10 +1416,23 @@
- "container3"
- "testidem-pod"
- "container_tls"
- "container2_tls"
- name: Remove pod
shell: podman pod rm -f testidempod
ignore_errors: true
containers.podman.podman_pod:
executable: "{{ test_executable | default('podman') }}"
name: testidempod
state: absent
- name: Remove podman images
containers.podman.podman_image:
name: "{{ item }}"
state: absent
loop:
- alpine:3.7
- alpine
- alpine:3.20
- alpine:3.12
- name: Remove temporary rootfs directory
ansible.builtin.file: