Integrating test-molecule role commit b90b020ad2
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Failing after 25s

This commit is contained in:
Mike Holloway committed 2025-01-04 17:44:27 -05:00
1 parent 004d301f66
commit 7c86412b04
6 files changed
+130 -59

No files matched your search

+16 -20
View File
@@ -1,24 +1,20 @@
---
- name: Destroy
hosts: localhost
connection: local
- name: Destroy molecule containers
hosts: molecule
gather_facts: false
# no_log: "{{ molecule_no_log }}"
tasks:
# Developer must implement.
- name: Stop and remove container
delegate_to: localhost
community.docker.docker_container:
name: "{{ inventory_hostname }}"
state: absent
auto_remove: true
# 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