Variable in template include?

17 views
Skip to first unread message

Kyle

unread,
May 6, 2015, 10:05:55 AM5/6/15
to ansible...@googlegroups.com
The following syntax doesn't seem to work in a template - the file never gets included. 

What am I doing wrong? Is this not possible?

{% include "{{ clean_app_name }}.inputs.conf.j2" ignore missing %}

I've tried single quotes, no quotes, nothing seems to work. 

Brian Coca

unread,
May 6, 2015, 11:23:32 AM5/6/15
to ansible...@googlegroups.com
this is really a jinja2 question, the answer is no mustaches:

{% include clean_app_name + ".inputs.conf.j2" ignore missing %}


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages