Files
ansible-role_podman-host/extensions/molecule/default/converge.yml
T
Mike Holloway c1b03b4e9a
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Failing after 2m10s
podman-host role name in converge.yml
2025-01-04 17:46:59 -05:00

27 lines
871 B
YAML

---
- name: Fail if molecule group is missing
hosts: localhost
tasks:
- 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 podman-host Role
include_role:
name: podman-host
# ansible.builtin.assert:
# that: result.stdout | regex_search("^Linux")