File tree 5 files changed +14
-6
lines changed
molecule/test/scenarios/dependency/molecule
5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 7
7
- name: Validate that collection was installed
8
8
debug:
9
9
msg: "{{ 'foo' | community.molecule.header }}"
10
+
11
+ - name: test installed role
12
+ include_role:
13
+ name: ssbarnea.ansible_role_helloworld
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ platforms:
8
8
image: ${TEST_BASE_IMAGE}
9
9
provisioner:
10
10
name: ansible
11
- env:
12
- ANSIBLE_ROLES_PATH: ../../../../../resources/roles/
13
11
scenario:
14
12
name: ansible-galaxy
15
13
verifier:
Original file line number Diff line number Diff line change 1
1
# See https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-roles-and-collections-from-the-same-requirements-yml-file
2
2
collections:
3
3
- community.molecule
4
- roles: []
4
+ roles:
5
+ - ssbarnea.ansible_role_helloworld
Original file line number Diff line number Diff line change 7
7
- name: Validate that collection was installed
8
8
debug:
9
9
msg: "{{ 'foo' | community.molecule.header }}"
10
+
11
+ - name: test installed role
12
+ include_role:
13
+ name: ssbarnea.ansible_role_helloworld
Original file line number Diff line number Diff line change 2
2
dependency:
3
3
name: shell
4
4
command: >
5
- ansible-galaxy collection install -p "${MOLECULE_EPHEMERAL_DIRECTORY}/collections" community.molecule
5
+ bash -c "
6
+ ansible-galaxy collection install -p '${MOLECULE_EPHEMERAL_DIRECTORY}/collections' community.molecule &&
7
+ ansible-galaxy role install -p '${MOLECULE_EPHEMERAL_DIRECTORY}/roles' ssbarnea.ansible_role_helloworld
8
+ "
6
9
driver:
7
10
name: delegated
8
11
platforms:
9
12
- name: instance
10
13
image: ${TEST_BASE_IMAGE}
11
14
provisioner:
12
15
name: ansible
13
- env:
14
- ANSIBLE_ROLES_PATH: ../../../../../resources/roles/
15
16
scenario:
16
17
name: shell
17
18
verifier:
You can’t perform that action at this time.
0 commit comments