I am trying to synchronize data between remote hosts using the synchroni 
module. 

HOST A-- Ansible Control Node
HOST B-  Host with Data or Source of the data that needs to be copied
HOST C- Destination host where data needs to be copied


I can run the command below on HOSTB and execute it succesfully
 rsync -avz --perms --chmod=777 -e "ssh -i privatekey.pem" Table 
ubuntu@HOSTC:/tmp


I have the following setup in a playbook and it gives me the error below 
when I am running the following playbook
 msg: unsupported parameter for module: ' -avz --perms --chmod




- hosts: HOSTB
  user: ubuntu
  sudo: true
  vars_files:
     - vars/vars.yml
  tasks:
   - name: Synchronize files from Source to dest
     synchronize: src={{ export_directory }} dest={{ upload_directory }} 
mode=push rsync_opts= '-avz --perms --chmod=777 -e "ssh -i {{ key_directory 
}}/{{ key }}"'
     delegate_to: HOSTB
################
How Can i make this work

-- 
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/e39f160d-d25d-43ec-9ee6-ea3bbad3ee20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to