-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use "inventory.links.group_vars" together "inventory.host_vars" #2759
Comments
Thank you @y-hashida for opening this ticket up. I was just getting ready to do the same thing. :) |
@thehybridtechnician |
@y-hashida hi, could you please close the issue if it's done? Thanks! |
Is this fix merged ? We are still facing the same issue.
|
Do we still need this feature? |
@zhan9san |
Issue type
molecule and ansible version
Desired Behavior
I would like to configure the following settings in "provisioner.inventory" of "molecule.yml".
As you can see from this snippet, here is a summary of what I want to set up.
Actual Behaviour
However, in practice, only the setting of group_vars:${GROUP_VARS} in inventory.links applies. inventory.host_vars will be ignored.
Conversely, if you remove inventory.links, host_vars is not ignored.
In referring to the molecule source code, it seems that the conditional branching is based only on the presence or absence of inventory.links.
https://github.com/ansible-community/molecule/blob/17c5da0e831a36f226769029d6452d8d0d692fd7/molecule/provisioner/ansible.py#L767-L778
If we can't use inventory.links.group_vars and inventory.group_vars together, then that's understandable, but if you can't use inventory.links.group_vars and inventory.host_vars together, then very inconvenient.
I would therefore like to request the following features.
Alternatively, I would like to know if there is a way to make this work as you wish without modifying the source code.
Best regards.
My molecule.yml and converge.yml
molecule.yml
converge.yml
The text was updated successfully, but these errors were encountered: