# Hello

**URL:** <https://forum.ansible.com/t/hello/29881>\
**Category:** Ansible Project\
**Created:** [March 14, 2019, 3:13am UTC](https://forum.ansible.com/t/hello/29881 "2019-03-14T03:13:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudhir](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@Sudhir](https://forum.ansible.com/u/Sudhir)\
**Post date:** [March 14, 2019, 3:13am UTC](https://forum.ansible.com/t/hello/29881/1 "2019-03-14T03:13:53Z")

</div>

I have the unique situation

I am running a playbook on list of hosts ( hostA, hostB, hostC ) for collecting the system current health and dump the data into the directory ( /var/tmp/\<hostname.daily\> on each ansible managed host.  
Now I need to copy the collected data from all hosts onto another remote host ( from hosta/hostB to hostC ) but the passwordless login is not configured between these 2 servers hence the playbook stuck at copy task.  
Let me know if anyone has any idea to resolve the issue

---

<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 14, 2019, 8:25am UTC](https://forum.ansible.com/t/hello/29881/2 "2019-03-14T08:25:35Z")

</div>

Hello

> I have the unique situation
> 
> I am running a playbook on list of hosts ( hostA, hostB, hostC ) for collecting the system current health and dump the data into the directory ( /var/tmp/\<hostname.daily\> on each ansible managed host.  
> Now I need to copy the collected data from all hosts onto another remote host ( from hosta/hostB to hostC ) but the passwordless login is not configured between these 2 servers hence the playbook stuck at copy task.  
> Let me know if anyone has any idea to resolve the issue

You need to configure passwordless logins between those 2 servers.

But, the copy task cannot be used to copy between two remote hosts, which is what you seem to be doing.  
However “passwordless login is not configured” could also indicate you’re not using the copy module.

You can see that I’m already having to guess what you’re exactly doing…  
Please send the exact and total playbook, and the output.

Dick

---

<div class="post-metadata">

**Author:** ![Sudhir](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@Sudhir](https://forum.ansible.com/u/Sudhir)\
**Post date:** [March 14, 2019, 6:50pm UTC](https://forum.ansible.com/t/hello/29881/3 "2019-03-14T18:50:37Z")

</div>

Hello Dick,

Here is the actual playbook

- hosts: test  
tasks:
- name: copy the data between 2 remote servers  
synchronize:  
src: “/var/tmp/test1”  
dest: “/tmp/test1.{{ inventory\_hostname }}”  
mode: pull  
archive: yes  
dirs: yes  
perms: yes  
recursive: yes  
times: yes  
rsync\_path: /usr/bin/rsync  
private\_key: ~/.ssh/id\_rsa  
changed\_when: False  
delegate\_to: \< Server name where I need to dump the data \>
