First draft linode scenario converge, destroy steps
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 5m31s

This commit is contained in:
Mike Holloway committed 2025-01-07 20:12:07 -05:00
1 parent 336d673393
commit a49e672ec0
2 files changed
+31 -22

No files matched your search

+8 -17
View File
@@ -5,20 +5,11 @@
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 # noqa no-handler
- 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 # Developer must implement.