Use of synchronize ask a password

Hi there,

I’m using a synchronize task:
http://docs.ansible.com/ansible/latest/synchronize_module.html

- 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 

You can't, you need to use keys.

There are some documents or example that you can forward me in order to understand how should i do that

thanks

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”

I use scp-copy-id (on Ubuntu)

https://linux.die.net/man/1/ssh-copy-id