Replies: 1 comment
-
Your question is sort of confusing, but I do not think your problem is the group_by function, but it sounds like you want to spit out devices as hostnames and you have another use case to spit out the IP? Is that correct? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ISSUE TYPE
Module question
SOFTWARE VERSIONS
Ansible:
2.10.0
Netbox:
v2.11.6
Collection:
$ ansible-galaxy collection list | grep netbox
netbox.netbox 3.0.0
netbox.netbox 3.1.1
SUMMARY
I am able to pull Netbox inventory values by using the netbox.netbox.nb_inventory.
Using group_by, I am able to group by sites for the hostnames.
How do I group by the hostname and the ansible_host (IP address)?
Beta Was this translation helpful? Give feedback.
All reactions