Dynamic Inventory Scripts in AWX 8.0.0+

Hello!

I read in the release notes of AWX 8.0.0 that dynamic inventories will no longer be supported in future versions.

We make heavy use of these at our organization currently and the path forward isn’t so clear or I’ve not read the correct information yet.

Any suggestions?

Thank you!
Holden

I believe the path is to have the inventory source be project sourced. It can still be dynamic, it’s just loaded from a project repo rather than a script pasted directly into AWX.

Yep, that’s exactly right. Our options for inventory in Ansible have come a long way, and so our long term plan is to recommend people place dynamic inventory scripts in their SCM-based projects (instead of the now-deprecated method of uploading arbitrary shell scripts to the AWX API :D).

Hmmm. This creates a challenge for us. While we do source our entire AWX installation and configuration minus secrets from GitLab, we cannot use a project for this particular inventory.

To give you a clearer picture we have a playbook that calls other playbooks we label as “micro-functions”…

Main Job
→ child job (register DNS)
→ create VM
→ install OS … etc.

We’re running into an issue where if these are run concurrently the project our inventory is sourced from is locked up during it’s clean SCM job. While we could just not sync this every time it would go against some of the fundamentals we set out on our IAC journey with. Our solution was to use an inventory script to pull the inventory each time thus not locking it up.

I wasn’t the one running into the scm update lock personally so I may not have described our issue the best, but I hope I painted a clear picture of our dilemma.

Thank you for the fast responses!

(reposted to remove quote spam.)