## Molecule extensions added
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 54s
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 54s
This commit is contained in:
1 parent
e3a2901cba
commit
aa8e17efa9
7 files changed
+208
-1
No files matched your search
@@ -0,0 +1,26 @@
|
||||
---
|
||||
- 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_netbird Role
|
||||
include_role:
|
||||
name: podman_netbird
|
||||
# ansible.builtin.assert:
|
||||
# that: result.stdout | regex_search("^Linux")
|
||||
Reference in new issue
Block a user