-
Notifications
You must be signed in to change notification settings - Fork 54
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
Support for Group Vars #29
Comments
@michaelklose Could you please add more details about what you want to do? |
So for example I currently get something like this here back when running ansible
Test-Switch2 is in for example in 3 groups "Cisco IOS", "Core Switch" and "Lab"
It would be great if it dynamically get the vars from the groups to also use them. In this example I might use site description for part of the SNMP Location. |
I also have a use case for According to Ansible documentation, already quoted in #19, the inventory structure might look like this:
Basically we could extend
We can maintain the categories level for mapping the key values (i.e. |
Technically I can't add something useful regarding your comment but Netbox is working on a similiar feature which is on the way to the official Netbox release. See netbox-community/netbox#1349 for more details. |
If you have similar requirements have a look at the inventory script located here: https://github.com/netbox-community/ansible_modules |
Is there a way to get group vars with this script? So for example vars for a site or a device role.
The text was updated successfully, but these errors were encountered: