On 05/12/14 22:10, 'Petros Moisiadis' via Ansible Project wrote:
> I am trying to use the synchronize module and I notice that it first
> connects as root at the local machine before calling rsync. However,
> root user's ssh key is not set in the authorized keys of the remote host
> root user, so it prompts for password, which causes ansible-playbook to
> hang. I don' t want to rsync from the local machine as root user. I want
> to rsync as the current user when invoking ansible-playbook, which Ι
> think should be the expected behavior. Am I missing something here?
>
> Ansible version: 1.6.1
>

Well, I worked around it by setting ansible_connection to 'local' for
localhost. However, I think it should also work with 'ssh' by connecting
as the current user (not as 'root').

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/53711F71.9040005%40yahoo.gr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to