Files
ansible-role-bind9/molecule/default/destroy.yml
T
2026-10-24 16:45:32 +02:00

28 lines
694 B
YAML

---
- name: Destroy
hosts: localhost
gather_facts: false
tasks:
- name: Remove the container of every platform
community.docker.docker_container:
name: "{{ item.name }}"
state: absent
loop: "{{ molecule_yml.platforms }}"
loop_control:
label: "{{ item.name }}"
- name: Remove the test image of every platform
community.docker.docker_image:
name: "bind9-molecule-{{ item.name }}:latest"
state: absent
loop: "{{ molecule_yml.platforms }}"
loop_control:
label: "{{ item.name }}"
- name: Empty the instance config
ansible.builtin.copy:
content: "[]"
dest: "{{ molecule_instance_config }}"
mode: "0600"