# remote1 -\>fetch-\> control machine -\>copy-\> remote2

**URL:** <https://forum.ansible.com/t/remote1-fetch-control-machine-copy-remote2/35224>\
**Category:** Ansible Project\
**Created:** [May 25, 2021, 8:14am UTC](https://forum.ansible.com/t/remote1-fetch-control-machine-copy-remote2/35224 "2021-05-25T08:14:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bond\_James](https://avatars.discourse-cdn.com/v4/letter/b/919ad9/32.png) [@Bond\_James](https://forum.ansible.com/u/Bond_James)\
**Post date:** [May 25, 2021, 8:14am UTC](https://forum.ansible.com/t/remote1-fetch-control-machine-copy-remote2/35224/1 "2021-05-25T08:14:34Z")

</div>

Hello!

I have 2 remote hosts and 1 master node with my playbooks. I want that file with name “.env” was copy with module “Fetch” to Master node and then, with module “copy” will copy to Remote host 2

**hosts:**

[jitsi]  
185.139.68.189

[VideoBridge2]  
46.17.104.103

[Jitsi\_Stack]  
185.139.68.189  
46.17.104.103

[jitsi:vars]  
ansible\_python\_interpreter=/usr/bin/python3

[VideoBridge2:vars]  
ansible\_python\_interpreter=/usr/bin/python3

**My playbook:**

---

<div class="post-metadata">

**Author:** ![Rodrigues](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@Rodrigues](https://forum.ansible.com/u/Rodrigues)\
**Post date:** [May 25, 2021, 9:08pm UTC](https://forum.ansible.com/t/remote1-fetch-control-machine-copy-remote2/35224/2 "2021-05-25T21:08:12Z")

</div>

The issue is that it cannot find the files as it’s expecting a single file which name is “.env”  
If you want to copy all files with that extension you may need a different solution. Have a look here: [https://stackoverflow.com/questions/54152051/ansible-fetch-a-collection-of-files-to-the-destination-without-copying-remote](https://stackoverflow.com/questions/54152051/ansible-fetch-a-collection-of-files-to-the-destination-without-copying-remote)
