Files
ansible-role_podman-host/extensions/molecule/linode/converge.yml
T
Mike Holloway af221cb741
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 5m26s
Use linode hosts
2025-01-07 20:27:19 -05:00

27 lines
863 B
YAML

---
- name: Fail if linode group is missing
hosts: localhost
tasks:
- name: Print some info
ansible.builtin.debug:
msg: "{{ groups }}"
- name: Assert group existence
ansible.builtin.assert:
that: "'linode' in groups"
fail_msg: |
linode group was not found inside inventory groups: {{ groups }}
- name: Converge
hosts: linode
# 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")