Skip to content

Commit

Permalink
Define ANSIBLE_ROLES_PATH for the ansible provisioner
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsf9k committed Jan 30, 2025
1 parent be68cb2 commit c1aca49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ platforms:
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
provisioner:
name: ansible
env:
ANSIBLE_ROLES_PATH: ~/.cache/molecule/skeleton-ansible-role/${MOLECULE_SCENARIO_NAME}/roles:${MOLECULE_PROJECT_DIRECTORY}/..:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
scenario:
name: default
verifier:
Expand Down

0 comments on commit c1aca49

Please sign in to comment.