# How to use ansible inventory plugins in awx

**URL:** <https://forum.ansible.com/t/how-to-use-ansible-inventory-plugins-in-awx/30727>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 8, 2019, 3:45pm UTC](https://forum.ansible.com/t/how-to-use-ansible-inventory-plugins-in-awx/30727 "2019-07-08T15:45:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Bacher](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@Daniel\_Bacher](https://forum.ansible.com/u/Daniel_Bacher)\
**Post date:** [July 8, 2019, 3:45pm UTC](https://forum.ansible.com/t/how-to-use-ansible-inventory-plugins-in-awx/30727/1 "2019-07-08T15:45:08Z")

</div>

Hi,

i want to import my inventory from my netbox instance. Ansible has a good [plugin](https://docs.ansible.com/ansible/latest/plugins/inventory/netbox.html) for that.

How can I use this plugin with awx?

Regards

Daniel

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [July 9, 2019, 11:40am UTC](https://forum.ansible.com/t/how-to-use-ansible-inventory-plugins-in-awx/30727/2 "2019-07-09T11:40:14Z")

</div>

Right now our solution is for you to put the nextbox.yml config in your source control, and then add an inventory source that sources from that project.

You can create custom credential types for secrets management, keeping this separate from your inventory config. Inventory plugins have generally allowed specifying secret fields via environment vars (which we have been pushing for AWX compatibility), in this case, NETBOX\_TOKEN or NETBOX\_API\_KEY.

Alan  
github: AlanCoding
