# Dynamic inventory

**URL:** <https://forum.ansible.com/t/dynamic-inventory/37725>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 3, 2023, 7:44pm UTC](https://forum.ansible.com/t/dynamic-inventory/37725 "2023-03-03T19:44:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_McGuire](https://avatars.discourse-cdn.com/v4/letter/w/b4bc9f/32.png) [@William\_McGuire](https://forum.ansible.com/u/William_McGuire)\
**Post date:** [March 3, 2023, 7:44pm UTC](https://forum.ansible.com/t/dynamic-inventory/37725/1 "2023-03-03T19:44:13Z")

</div>

Hi - I’m running AWX 21.12.0 and trying to create a dynamic inventory with Netbox. I’ve started by created a netbox\_inv.yml file which uses the plugin: netbox.netbox.nb\_inventory and am able to successfully pull in the inventory and use it in my playbooks via the cli.

I’d like to use that same inventory in AWX. Within AWX I’ve created an inventory and assume I need to create a source which will contain the contents of my netbox\_inv.yml file. When I go to the source tab of the inventory it doesn’t give me a dropdown that allows me to enter the contents or even reference a source like gitlab.  
Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![trippinnik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/trippinnik/32/4308_2.png) [@trippinnik](https://forum.ansible.com/u/trippinnik)\
**Post date:** [March 7, 2023, 6:19pm UTC](https://forum.ansible.com/t/dynamic-inventory/37725/2 "2023-03-07T18:19:34Z")

</div>

I use servicenow and followed: [Using an Inventory Plugin from a Collection in Ansible Tower](https://www.ansible.com/blog/using-an-inventory-plugin-from-a-collection-in-ansible-tower)  
I think you could adapt this for what you were doing

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [March 10, 2023, 6:28pm UTC](https://forum.ansible.com/t/dynamic-inventory/37725/3 "2023-03-10T18:28:58Z")

</div>

Hi Bill,

were you able to get the dynamic inventory working for AWX? You should be able to create a source from project, point it to your gitlab project, and choose the netbox\_inv.yml file

see these docs for more info [https://docs.ansible.com/automation-controller/latest/html/userguide/inventories.html#sourced-from-a-project](https://docs.ansible.com/automation-controller/latest/html/userguide/inventories.html#sourced-from-a-project)

AWX Team
