Dynamic inventory script

Hi all,

Could someone tell me if there are any sample python (or other) scripts to create a dynamic inventory from a CMDB webservice?

Thanks in advance !

What I found most useful why developing dynamic inventory scripts, is the use of ansible-inventory command (https://docs.ansible.com/ansible/latest/cli/ansible-inventory.html). Its output shows exactly the format that is expected from your dynamic inventory script, and you also can use it by pointing it to your dynamic inventory script, to check that it can consume it just fine. No awx is required for any of that. Btw they are removing the “INVENTORY SCRIPTS” submenu from awx, as you are now supposed to source these from projects.

Never worked with a CMDB webservice, so cannot comment on that front.

Thanks for your feeback!
And for this “they are removing the “INVENTORY SCRIPTS” submenu from awx, as you are now supposed to source these from projects” …I was not aware of this possible next update of the AWX UI ! :o