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:
parent
92fe1464a0
commit
97fbb1eb9b
1 changed files with 15 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue