Where to place j2 templates / files to copy?

132 views
Skip to first unread message

Reece Webb

unread,
Jul 6, 2018, 2:39:49 PM7/6/18
to AWX Project
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

Christopher Meyers

unread,
Aug 10, 2018, 1:06:27 PM8/10/18
to AWX Project
Can you please include the exact error and the playbook files being used (including the template file).

Selvam Elangovan

unread,
Apr 12, 2020, 3:02:41 AM4/12/20
to AWX Project
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.
Reply all
Reply to author
Forward
0 new messages