Hello

25 views
Skip to first unread message

Sudhir

unread,
Mar 13, 2019, 11:13:53 PM3/13/19
to Ansible Project
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

Dick Visser

unread,
Mar 14, 2019, 4:25:59 AM3/14/19
to ansible...@googlegroups.com
Hello

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 

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/924dde7c-fecb-4271-aa21-a3a7f165ba99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Sudhir

unread,
Mar 14, 2019, 2:50:37 PM3/14/19
to Ansible Project
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 >
Reply all
Reply to author
Forward
0 new messages