# Template expansion

**URL:** <https://forum.ansible.com/t/template-expansion/35880>\
**Category:** Ansible Project\
**Created:** [October 15, 2021, 11:43am UTC](https://forum.ansible.com/t/template-expansion/35880 "2021-10-15T11:43:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauricio\_Tavares](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Post date:** [October 15, 2021, 11:43am UTC](https://forum.ansible.com/t/template-expansion/35880/1 "2021-10-15T11:43:59Z")

</div>

When you use the template module, where does it do all the jinjaness  
(variable expansion, loop, etc): in the host you are running ansible  
from (server?) or the one you are applying it to (client)?

---

<div class="post-metadata">

**Author:** ![vbotka](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/vbotka/32/359_2.png) [@vbotka](https://forum.ansible.com/u/vbotka)\
**Post date:** [October 15, 2021, 12:54pm UTC](https://forum.ansible.com/t/template-expansion/35880/2 "2021-10-15T12:54:30Z")

</div>

The \*template\* is completed at the controller. In fact, the modules  
\*stat\* and \*file\* are used behind the scene to write the file at the  
client.

Short answer would be: Is Jinja package needed at the client?
