# Variable in template include?

**URL:** <https://forum.ansible.com/t/variable-in-template-include/18168>\
**Category:** Ansible Project\
**Created:** [May 6, 2015, 2:05pm UTC](https://forum.ansible.com/t/variable-in-template-include/18168 "2015-05-06T14:05:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.ansible.com/u/Kyle)\
**Post date:** [May 6, 2015, 2:05pm UTC](https://forum.ansible.com/t/variable-in-template-include/18168/1 "2015-05-06T14:05:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 6, 2015, 3:23pm UTC](https://forum.ansible.com/t/variable-in-template-include/18168/2 "2015-05-06T15:23:29Z")

</div>

this is really a jinja2 question, the answer is no mustaches:

{% include clean\_app\_name + ".inputs.conf.j2" ignore missing %}
