You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So when i use molecule in ansible-playbook-example the ansible-role-example3 from the top directory will be used but not the one contained in the playbooks/roles folder. This is caused by the early appearence of $project_directory/../, so when I add
env:
ANSIBLE_ROLE_PATH: ../../roles
to my ansible-playbook-example/molecule/default/molecule.yml There is no way to use the role contained in the playbook because the one in the root directory will always be used first..
Is there a way to use this directory structure?
I am using git submodules for the roles contained in the playbook at the moment..
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello dear molecule community,
i just stumbled upon a "Problem" with molecule for playbook testing and the default order of
ANSIBLE_ROLE_PATH
used by molecule: https://github.com/ansible-community/molecule/blob/d7b10d2a448906ca0d24f15c80facb892dd1d8d1/src/molecule/provisioner/ansible.py#L205My folder structure looks something like this
So when i use molecule in ansible-playbook-example the ansible-role-example3 from the top directory will be used but not the one contained in the playbooks/roles folder. This is caused by the early appearence of
$project_directory/../
, so when I addto my
ansible-playbook-example/molecule/default/molecule.yml
There is no way to use the role contained in the playbook because the one in the root directory will always be used first..Is there a way to use this directory structure?
I am using git submodules for the roles contained in the playbook at the moment..
Thank you very much!
Fabian
Beta Was this translation helpful? Give feedback.
All reactions