Skip to content

Commit c1aca49

Browse files
committed
Define ANSIBLE_ROLES_PATH for the ansible provisioner
Molecule used to modify the roles path for us, but as of v25.2.0 no longer does. (See ansible/molecule#4380 for details.) As a result we must now modify it ourselves.
1 parent be68cb2 commit c1aca49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

molecule/default/molecule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ platforms:
220220
privileged: true
221221
volumes:
222222
- /sys/fs/cgroup:/sys/fs/cgroup:rw
223+
provisioner:
224+
name: ansible
225+
env:
226+
ANSIBLE_ROLES_PATH: ~/.cache/molecule/skeleton-ansible-role/${MOLECULE_SCENARIO_NAME}/roles:${MOLECULE_PROJECT_DIRECTORY}/..:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
223227
scenario:
224228
name: default
225229
verifier:

0 commit comments

Comments
 (0)