28 lines
694 B
YAML
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"
|