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

+23 -7
View File
@@ -1,10 +1,26 @@
---
- name: Converge
hosts: all
become: true
become_user: root
gather_facts: false
- name: Fail if molecule group is missing
hosts: localhost
tasks:
- name: podman-host Role
- name: Print some info
ansible.builtin.debug:
msg: "{{ groups }}"
- name: Assert group existence
ansible.builtin.assert:
that: "'molecule' in groups"
fail_msg: |
molecule group was not found inside inventory groups: {{ groups }}
- name: Converge
hosts: molecule
# We disable gather facts because it would fail due to our container not
# having python installed. This will not prevent use from running 'raw'
# commands. Most molecule users are expected to use containers that already
# have python installed in order to avoid notable delays installing it.
tasks:
- name: Apply test-molecule Role
include_role:
name: podman-host
name: test-molecule
# ansible.builtin.assert:
# that: result.stdout | regex_search("^Linux")