Where to place j2 templates / files to copy?

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

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

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.