Open ryanmerolle opened 3 years ago
Recently I came across nautobot ansible variable management at scale.
It leverages pynautobot's graphql interface. I think it would be good to minimize unneeded hostvars taking up resources until needed to shrink overall resource requirements and decrease run time. I will look to link to a pynetbox issue. It seems someone already submitted a PR.
Nautobot has implemented this: https://github.com/nautobot/nautobot-ansible/blob/develop/plugins/lookup/lookup_graphql.py
It is GPLv3 licensed, I wonder if this could be implemented here? Or a cleanroom re-implementation/totally independent plugin is needed?
ISSUE TYPE
SOFTWARE VERSIONS
v3.1.1
Ansible:
2.10.12
Netbox:
NetBox v3.0-beta1
Collection:
SUMMARY
With graphQL read only API being integrated into NetBox, it only makes sense to create a lookup plugin.
SUGGESTED PARAMETERS
Following the standard Ansible module documentation:
SUGGESTED RETURN VALUES
EXAMPLE USAGE