# Where to place j2 templates / files to copy?

**URL:** <https://forum.ansible.com/t/where-to-place-j2-templates-files-to-copy/27976>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 6, 2018, 6:39pm UTC](https://forum.ansible.com/t/where-to-place-j2-templates-files-to-copy/27976 "2018-07-06T18:39:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reece\_Webb1](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@Reece\_Webb1](https://forum.ansible.com/u/Reece_Webb1)\
**Post date:** [July 6, 2018, 6:39pm UTC](https://forum.ansible.com/t/where-to-place-j2-templates-files-to-copy/27976/1 "2018-07-06T18:39:49Z")

</div>

I’m not sure if this is a bug or I’m doing something wrong. I opened a github issue, but they closed the issue without confirming one way or the other.

I’m using SCM to import project playbooks. My test playbook copies a jinja2 template to a host using the template module. The playbook runs, I see facts are gathered successfully, but I’m getting an error about “source not found”.

I have the \*.j2 file in the same top-level directory as the \*.yml. I can’t find info in the documentation on how to layout directories when using SCM, and my “template” searches are only bringing up AWX Templates info.

Thanks!  
Reece

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [August 10, 2018, 5:06pm UTC](https://forum.ansible.com/t/where-to-place-j2-templates-files-to-copy/27976/2 "2018-08-10T17:06:27Z")

</div>

Can you please include the exact error and the playbook files being used (including the template file).

---

<div class="post-metadata">

**Author:** ![Selvam\_Elangovan](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Selvam\_Elangovan](https://forum.ansible.com/u/Selvam_Elangovan)\
**Post date:** [April 12, 2020, 7:02am UTC](https://forum.ansible.com/t/where-to-place-j2-templates-files-to-copy/27976/3 "2020-04-12T07:02:40Z")

</div>

Reece,

I am also looking for how to use jinja2 template in awx. I could not find any alternate option in awx to provide those function.

As I am using K8s for AWX, I don’t want to use FS based template. It should use either SCM or they have to integrate the Jinja2 template as Extra variable in Job Template.

I am still checking and let you know if I could find any way to do.

The tower document from RedHat is not help full here as well.
