# remote to remote host copy. using AWX

**URL:** <https://forum.ansible.com/t/remote-to-remote-host-copy-using-awx/34701>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [March 1, 2021, 5:15pm UTC](https://forum.ansible.com/t/remote-to-remote-host-copy-using-awx/34701 "2021-03-01T17:15:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forum.ansible.com/u/Raj)\
**Post date:** [March 1, 2021, 5:15pm UTC](https://forum.ansible.com/t/remote-to-remote-host-copy-using-awx/34701/1 "2021-03-01T17:15:06Z")

</div>

Hi All,

I am trying to copy file from remote to remote using below tasks. already I used fetch and copy module through control node. In my scenario as per security reason we won’t copy to control node.

---

<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:** [March 1, 2021, 5:34pm UTC](https://forum.ansible.com/t/remote-to-remote-host-copy-using-awx/34701/2 "2021-03-01T17:34:43Z")

</div>

And your question is....?

---

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forum.ansible.com/u/Raj)\
**Post date:** [March 1, 2021, 5:36pm UTC](https://forum.ansible.com/t/remote-to-remote-host-copy-using-awx/34701/3 "2021-03-01T17:36:17Z")

</div>

Hi,

How to copy remote to remote hosts.

Thanks

---

<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:** [March 2, 2021, 8:39pm UTC](https://forum.ansible.com/t/remote-to-remote-host-copy-using-awx/34701/4 "2021-03-02T20:39:59Z")

</div>

> Hi,
> 
> How to copy remote to remote hosts.

Basically this should work:

- name: copy files from server\_a to server B,C,D.  
&nbsp;&nbsp;synchronize:  
&nbsp;&nbsp;&nbsp;&nbsp;mode: push  
&nbsp;&nbsp;&nbsp;&nbsp;src: "/tmp"  
&nbsp;&nbsp;&nbsp;&nbsp;dest: ....  
&nbsp;&nbsp;&nbsp;delegate\_to: server\_a  
&nbsp;&nbsp;&nbsp;when: inventory\_hostname != 'server\_a'

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