# Is there a way to pass inventory directly to a job template?

**URL:** <https://forum.ansible.com/t/is-there-a-way-to-pass-inventory-directly-to-a-job-template/37247>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 19, 2022, 1:20pm UTC](https://forum.ansible.com/t/is-there-a-way-to-pass-inventory-directly-to-a-job-template/37247 "2022-10-19T13:20:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![T\_K\_Sourabh](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@T\_K\_Sourabh](https://forum.ansible.com/u/T_K_Sourabh)\
**Post date:** [October 19, 2022, 1:20pm UTC](https://forum.ansible.com/t/is-there-a-way-to-pass-inventory-directly-to-a-job-template/37247/1 "2022-10-19T13:20:31Z")

</div>

Hi,

I wanted to do away with custom script and have a cron tab that would collect host information and call the awx job template launch API. Is there way we could supply the host information(inventory file) to the job template. I will have multiple launch of the same job template. We are currently running with “update on launch” and “enable concurrent jobs” on custom script source but since we have a crontab, we might as well move the inventory logic to crontab and simplify awx. The only puzzle left is if we can pass the inventory file to job template launch or any other solution. Open to ideas.

awx-version: 7.0.0 (we are working on migrating to newer version but for now we are stuck with this)  
Please let me know if more details are required.

---

<div class="post-metadata">

**Author:** ![Jagruti\_Belani](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Jagruti\_Belani](https://forum.ansible.com/u/Jagruti_Belani)\
**Post date:** [October 19, 2022, 4:24pm UTC](https://forum.ansible.com/t/is-there-a-way-to-pass-inventory-directly-to-a-job-template/37247/2 "2022-10-19T16:24:29Z")

</div>

Hi  
You can use “Sources” feature inside inventory settings to auto load inventories.

---

<div class="post-metadata">

**Author:** ![T\_K\_Sourabh](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@T\_K\_Sourabh](https://forum.ansible.com/u/T_K_Sourabh)\
**Post date:** [October 19, 2022, 5:06pm UTC](https://forum.ansible.com/t/is-there-a-way-to-pass-inventory-directly-to-a-job-template/37247/3 "2022-10-19T17:06:29Z")

</div>

Are you referring to “source from project”? I’m not clear on auto load. Could you please elaborate?  
Thanks
