# remote\_src and template\_host for template module not working for me

**URL:** <https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32274>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [February 19, 2020, 2:23pm UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32274 "2020-02-19T14:23:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 19, 2020, 2:23pm UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32274/1 "2020-02-19T14:23:10Z")

</div>

A few issues:

1. The file /template/test.j2 needs to be available on the remote  
node, because you specified "remote\_src: yes". Fix this.  
2. template\_host is not a valid parameter for the template task - and  
it is not clear what you expect this to do.  
3. There appears to be no problem with the vars file json/UAT.json -  
contrary to what you think.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 20, 2020, 9:51am UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32274/2 "2020-02-20T09:51:51Z")

</div>

As jborean93@gmail.com said the template module does NOT have a  
remote\_src paramater.  
I mixed things up with the file module, which does have that.

A scenario whereby both the template src and destination are on the  
remote node is only possible by fetching the template in an  
intermediate step.

I remember having tried to combine slurp with copy+remote\_src but that  
didn't work.
