Re: [ansible-project] synchronize between 2 files on remote host uses private_key

2015-02-09 Thread Michael Spiegle
I looked at the module code and it seemed like it would automatically add the key if it was being used. I ended up running rsync directly using the command module and it seems to be working now. Looking at the rsync_opts argument, it seems like it will only append to the existing arguments,

Re: [ansible-project] synchronize between 2 files on remote host uses private_key

2015-02-09 Thread James Cammarata
Actually, looking through the code I believe you're correct. Setting the option for -i again *might* work (assuming the rsync command will override the setting with the second value, instead of throwing an error), however I think using the rsync command directly is what you want anyway, as you

[ansible-project] synchronize between 2 files on remote host uses private_key

2015-02-09 Thread Michael Spiegle
I have a simple task to copy a file from one path to another on a remote host. I need a private key to SSH into the remote host, but the synchronize module automatically uses my private key in the rsync command too which seems unnecessary: ansible-playbook --private-key=keys/mykey.pem

Re: [ansible-project] synchronize between 2 files on remote host uses private_key

2015-02-09 Thread James Cammarata
Hi Michael, have you tried setting the key option via the rsync_opts and/or rsync_path parameters to synchronize module? On Sat, Feb 7, 2015 at 10:05 AM, Michael Spiegle mspie...@nauticaltech.com wrote: I have a simple task to copy a file from one path to another on a remote host. I need a