Skip to content

Commit

Permalink
Merge pull request #221 from cisagov/bugfix/handle-molecule-breaking-…
Browse files Browse the repository at this point in the history
…change

Define `ANSIBLE_ROLES_PATH` for the `ansible` provisioner
  • Loading branch information
jsf9k authored Jan 31, 2025
2 parents be68cb2 + cbfbd52 commit 37a097e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ platforms:
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
provisioner:
name: ansible
env:
# Molecule used to add ${MOLECULE_PROJECT_DIRECTORY}/. to this
# path for us pre-25.2.0, but now we have to do it ourselves. See
# ansible/molecule#4380 and
# https://github.com/ansible/molecule/releases/tag/v25.2.0 for
# more details.
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 37a097e

Please sign in to comment.