Dynamic inventory

262 views
Skip to first unread message

William McGuire

unread,
Mar 3, 2023, 2:44:13 PM3/3/23
to AWX Project
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.

Nicholas Tripp

unread,
Mar 7, 2023, 1:19:35 PM3/7/23
to AWX Project
I use servicenow and followed:  Using an Inventory Plugin from a Collection in Ansible Tower
I think you could adapt this for what you were doing 

AWX Project

unread,
Mar 10, 2023, 1:28:59 PM3/10/23
to AWX Project
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


AWX Team
Reply all
Reply to author
Forward
0 new messages