Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Remove created networks (#151)
Browse files Browse the repository at this point in the history
Co-authored-by: A <[email protected]>
Co-authored-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
3 people authored Jan 7, 2023
1 parent c1cbceb commit 85651aa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/molecule_podman/playbooks/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,15 @@
until: podman_jobs.finished
retries: 300
with_items: "{{ server.results }}"

- name: Delete podman network dedicated to this scenario
containers.podman.podman_network:
name: "{{ item.network }}"
executable: "{{ podman_exec }}"
state: absent
when:
- item.network is defined
loop: "{{ molecule_yml.platforms | flatten(levels=1) }}"
loop_control:
extended: true
label: "{{ item.name }}: {{ item.network | default('None specified') }}"

0 comments on commit 85651aa

Please sign in to comment.