Is it possible to pass AWX job Id to job?

314 views
Skip to first unread message

MarcG

unread,
Mar 23, 2018, 7:10:49 AM3/23/18
to AWX Project
Hi is it possible to pass job details to the ansible playbook through extra vars in the job template?

Alan Rominger

unread,
Mar 23, 2018, 8:02:16 AM3/23/18
to MarcG, AWX Project
tower_job_id / awx_job_id is automatically included in extra_vars, you should be able to reference this in playbooks already. You can use the API to look up further details of the job if you need it.

Alan
github: AlanCoding

On Fri, Mar 23, 2018 at 7:10 AM, MarcG <m...@marcosg.com> wrote:
Hi is it possible to pass job details to the ansible playbook through extra vars in the job template?

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project+unsubscribe@googlegroups.com.
To post to this group, send email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/4f9abd67-e472-4606-beb7-1a879c8c3829%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Church

unread,
Mar 23, 2018, 11:13:27 AM3/23/18
to MarcG, AWX Project
Some job details are already included (e.g. awx_job_id):


On Fri, Mar 23, 2018 at 7:10 AM, MarcG <m...@marcosg.com> wrote:
Hi is it possible to pass job details to the ansible playbook through extra vars in the job template?

Marcos Georgopoulos

unread,
Mar 23, 2018, 3:08:45 PM3/23/18
to Chris Church, AWX Project
Thank you both very much. 
Reply all
Reply to author
Forward
0 new messages