You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
599 B
24 lines
599 B
---
|
|
- name: Destroy
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: false
|
|
no_log: "{{ molecule_no_log }}"
|
|
tasks:
|
|
# Developer must implement.
|
|
|
|
# Mandatory configuration for Molecule to function.
|
|
|
|
- name: Populate instance config
|
|
ansible.builtin.set_fact:
|
|
instance_conf: {}
|
|
|
|
- name: Dump instance config
|
|
ansible.builtin.copy:
|
|
content: |
|
|
# Molecule managed
|
|
|
|
{{ instance_conf | to_json | from_json | to_yaml }}
|
|
dest: "{{ molecule_instance_config }}"
|
|
mode: 0600
|
|
when: server.changed | default(false) | bool
|
|
|