Files
ansible-role_podman-host/extensions/molecule/default/destroy.yml
T
Mike Holloway 7c86412b04
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Failing after 25s
Integrating test-molecule role commit b90b020ad2
2025-01-04 17:44:27 -05:00

21 lines
555 B
YAML

---
- name: Destroy molecule containers
hosts: molecule
gather_facts: false
tasks:
- name: Stop and remove container
delegate_to: localhost
community.docker.docker_container:
name: "{{ inventory_hostname }}"
state: absent
auto_remove: true
- name: Remove dynamic molecule inventory
hosts: localhost
gather_facts: false
tasks:
- name: Remove dynamic inventory file
ansible.builtin.file:
path: "{{ molecule_ephemeral_directory }}/inventory/molecule_inventory.yml"
state: absent