ansible-role-immich/molecule/default/destroy.yml

20 lines
551 B
YAML
Raw Normal View History

- name: Destroy molecule containers
hosts: molecule
2023-11-18 14:31:00 +01:00
gather_facts: false
tasks:
- name: Stop and remove container
delegate_to: localhost
community.docker.docker_container:
name: "{{ inventory_hostname }}"
state: absent
auto_remove: true
2023-11-18 14:31:00 +01:00
- 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