External files with custom inventory

Hi I have a dynamic inventory file references an external file. This external file is updated by plays under certain conditions and then effects the output of the dynamic inventory on its next run.

Is there a way to use this file with my custom inventory script in AWX?

Many thanks

Sure… you’ll just need to be careful about where and how this file is referenced during the playbook run and when AWX runs the inventory script.

Thanks Matthew.

I didn’t word my question very well. I guess what I was wondering was there a way to have AWX automatically detect the configuration/ini file. For example if the custom script was pulled down from a SCM AWX could detect any other files in the Repo with certain extensions ( as an example ) and pull them down to the same temp folder as the custom script.

AWX itself doesn’t know anything about your custom inventory script so any logic that it needs will need to be handled from within that script itself.