Use of synchronize ask a password

45 views
Skip to first unread message

lidor.e...@gmail.com

unread,
Nov 16, 2017, 4:53:39 PM11/16/17
to Ansible Project
Hi there,

I'm using a synchronize task:
- synchronize:
    src: some/relative/path
    dest: /some/absolute/path
So far so good but i expected that Ansible won't ask me for entering a password and that what's happening.
How can i explicit the password or supply it within the task?
Thx 

Kai Stian Olstad

unread,
Nov 17, 2017, 2:20:36 AM11/17/17
to ansible...@googlegroups.com
You can't, you need to use keys.

--
Kai Stian Olstad

lidor.e...@gmail.com

unread,
Nov 17, 2017, 2:46:43 AM11/17/17
to Ansible Project
There are some documents or example that you can forward me in order to understand how should i do that

thanks

lidor.e...@gmail.com

unread,
Nov 17, 2017, 5:35:19 AM11/17/17
to Ansible Project
Hi,

I solved it with another solution. so if someone will be interested

- name: Copy over SCP
  local_action: "command sshpass -p {{pass}} scp -r $LOCAL_FOLDER {{user}}@$IP_DEST:$DEST_FOLDER"

Moreno Garcia

unread,
Nov 17, 2017, 8:51:08 AM11/17/17
to Ansible Project
I use scp-copy-id (on Ubuntu)

Reply all
Reply to author
Forward
0 new messages