Dynamic inventory

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.

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

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

AWX Team