# Is it possible to pass AWX job Id to job?

**URL:** <https://forum.ansible.com/t/is-it-possible-to-pass-awx-job-id-to-job/27092>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 23, 2018, 11:10am UTC](https://forum.ansible.com/t/is-it-possible-to-pass-awx-job-id-to-job/27092 "2018-03-23T11:10:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcG](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@MarcG](https://forum.ansible.com/u/MarcG)\
**Post date:** [March 23, 2018, 11:10am UTC](https://forum.ansible.com/t/is-it-possible-to-pass-awx-job-id-to-job/27092/1 "2018-03-23T11:10:49Z")

</div>

Hi is it possible to pass job details to the ansible playbook through extra vars in the job template?

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [March 23, 2018, 12:02pm UTC](https://forum.ansible.com/t/is-it-possible-to-pass-awx-job-id-to-job/27092/2 "2018-03-23T12:02:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Chris\_Church](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Chris\_Church](https://forum.ansible.com/u/Chris_Church)\
**Post date:** [March 23, 2018, 3:13pm UTC](https://forum.ansible.com/t/is-it-possible-to-pass-awx-job-id-to-job/27092/3 "2018-03-23T15:13:02Z")

</div>

Some job details are already included (e.g. awx\_job\_id):

[https://github.com/ansible/awx/blob/devel/awx/main/models/unified\_jobs.py#L1377](https://github.com/ansible/awx/blob/devel/awx/main/models/unified_jobs.py#L1377)

---

<div class="post-metadata">

**Author:** ![MarcG](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@MarcG](https://forum.ansible.com/u/MarcG)\
**Post date:** [March 23, 2018, 7:08pm UTC](https://forum.ansible.com/t/is-it-possible-to-pass-awx-job-id-to-job/27092/4 "2018-03-23T19:08:39Z")

</div>

Thank you both very much.
