At work we are testing Tower and AWX and in particular we use it to produce configurations templates that we then push to git.
The whole process works fine and we are trying to automate it using as follows:
- a web frontend calling AWX/Tower API
- APIs call will start a job/playbook in tower that will create/apply the new configuration
- the last task of the playbook will commit and push the configuration to git.
What I would like to do is to include in the git commit comment, the reference to AWX/Tower job that was spun but I can't find
that information anywhere in the ansible_facts that the playbook is running with.
Do you know if it is possible to get it somewhere? Or even a way to pass it as an extra-var at the time the job is started?