Hi
I am having issues with using a inventory plugin within AAP which takes extra vars to populate the inventory. The inventory works in ansible-core with ansible-inventory -v --list -e “site_name=A device_role=switch” but when using an inventory sync within a workflow passing survey variables it does not work. The source code is below, I just wanted to know if this was in fact possible via AAP and if so, what am I missing?
Source Code for inventory
plugin: netbox.netbox.nb_inventory
api_endpoint: “{{ omitted }}”
token: “{{ omitted }}”
validate_certs: false
config_context: true
group_by:
- sites
- device_roles
query_filters: - site: “{{ site_name }}”
- role: “{{ device_role }}”
pluck_interfaces: true
pluck_ip_addresses: true
device_query_filters: - status: active