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
I have currently the problem that two roles the role I want to test and the role it depends on uses with_first_found to load there variables bases on the os and/or version.
Now I have the problem that when I run the test the dependency finds inside the role that gets tested the vars file already.
Is there some way to set it up, so that the role that gets tested is called for the global role folder? Or is there no way beside changing the names of the vars files that should be looked up so they do not clash.
Or am I generally doing something that should not be done.
Versions:
molecule 5.1.0 using python 3.11
ansible:2.15.2
azure:23.4.1 from molecule_plugins
containers:23.4.1 from molecule_plugins requiring collections: ansible.posix>=1.3.0 community.docker>=1.9.1 containers.podman>=1.8.1
delegated:5.1.0 from molecule
docker:23.4.1 from molecule_plugins requiring collections: community.docker>=3.0.2 ansible.posix>=1.4.0
ec2:23.4.1 from molecule_plugins
gce:23.4.1 from molecule_plugins requiring collections: google.cloud>=1.0.2 community.crypto>=1.8.0
podman:23.4.1 from molecule_plugins requiring collections: containers.podman>=1.7.0 ansible.posix>=1.3.0
vagrant:23.4.1 from molecule_plugins
Here an example. (This is just the general setup of how it looks, so not tested)
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
-
I have currently the problem that two roles the role I want to test and the role it depends on uses with_first_found to load there variables bases on the os and/or version.
Now I have the problem that when I run the test the dependency finds inside the role that gets tested the vars file already.
Is there some way to set it up, so that the role that gets tested is called for the global role folder? Or is there no way beside changing the names of the vars files that should be looked up so they do not clash.
Or am I generally doing something that should not be done.
Versions:
Here an example. (This is just the general setup of how it looks, so not tested)
Role A
tasks/main.yml
Role B
molecule/default/requirements.yml
meta/main.yml
tasks/main.yml
Beta Was this translation helpful? Give feedback.
All reactions