# Ansible AAP Dynamic Inventory

**URL:** <https://forum.ansible.com/t/ansible-aap-dynamic-inventory/43204>\
**Category:** Get Help\
**Tags:** aap\
**Created:** [June 6, 2025, 10:58am UTC](https://forum.ansible.com/t/ansible-aap-dynamic-inventory/43204 "2025-06-06T10:58:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcj1319](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mcj1319](https://forum.ansible.com/u/mcj1319)\
**Post date:** [June 6, 2025, 10:58am UTC](https://forum.ansible.com/t/ansible-aap-dynamic-inventory/43204/1 "2025-06-06T10:58:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bundyboyuk](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@bundyboyuk](https://forum.ansible.com/u/bundyboyuk)\
**Post date:** [July 21, 2025, 3:43pm UTC](https://forum.ansible.com/t/ansible-aap-dynamic-inventory/43204/2 "2025-07-21T15:43:30Z")

</div>

Hi,

I have the same issue, did you find something?
