# 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/32329>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [February 26, 2020, 8:50am UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32329 "2020-02-26T08:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [February 26, 2020, 8:50am UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32329/1 "2020-02-26T08:50:26Z")

</div>

> Hi ,
> 
> 1. I have multiple json as well as j2 files , Need to generate multiple config files by using template module.  
> 2. In fetch module . fetch the files with including host name in path . How we can avoid this hostname in path ?  
> Ex:  
> - name: fetch tar file from remote to local machine  
> fetch:  
> src: /tmp/tts\_config.tar  
> dest: /tmp/  
> flat: ture
> 
> and files are present in following path in controller  
> /tmp/namwrncld1135.nam.nsroot.net/tmp/tts\_config.tar  
> namwrncld1135.nam.nsroot.net is remote machine  
> Can anyone please help here. so that i greatfull to u .
> 
> Thanks

It eludes me why you don't install rsync on the Ansible controller and use synchronize module as recommended.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
