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
But, if I link hosts to a directory, inventory_dir will be /home/USER/.cache/molecule/ROLE/default/inventory/hosts
provisioner:
inventory:
links:
hosts: hosts2
I want to use plugin like ansible.builtin.constructed and it can't be put on single hosts file. Is there any way to force inventory_dir to stay as /home/USER/.cache/molecule/ROLE/default/inventory?
Additional info:
I have 2 scenarios,
scenario1 deploys ubuntu-1 using first config, hosts: hosts2/hosts.yaml
scenario2 deploys ubuntu-2 using second config, hosts: hosts2
Interestingly, ubuntu-1 keeps its inventory_dir as /home/USER/.cache/molecule/ROLE/default/inventory/hosts even when called using scenario2
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, I'm not sure if this is bug or not. When we link hosts to directory,
inventory_dir
will point toinventory/hosts
instead.If I link hosts to a host file,
inventory_dir
will be/home/USER/.cache/molecule/ROLE/default/inventory
But, if I link hosts to a directory,
inventory_dir
will be/home/USER/.cache/molecule/ROLE/default/inventory/hosts
I want to use plugin like
ansible.builtin.constructed
and it can't be put on single hosts file. Is there any way to forceinventory_dir
to stay as/home/USER/.cache/molecule/ROLE/default/inventory
?Additional info:
I have 2 scenarios,
scenario1
deploysubuntu-1
using first config,hosts: hosts2/hosts.yaml
scenario2
deploysubuntu-2
using second config,hosts: hosts2
Interestingly,
ubuntu-1
keeps itsinventory_dir
as/home/USER/.cache/molecule/ROLE/default/inventory/hosts
even when called usingscenario2
Beta Was this translation helpful? Give feedback.
All reactions