unsupported parameter for module: checksum

Hello
I am trying to use the synchroize /var/www folder between control host and my appserver(s)

Although the basic synchronize command works, the other options given at http://docs.ansible.com/synchronize_module.html dont seem to work.
This is a recent install on Ubuntu 14 and ansible version is
ansible-playbook 1.5.4

synchronize src=/var/www/ dest=/var/www

  • works but copies all files

synchronize checksum=yes src=/var/www/ dest=/var/www

fails with error
failed: [10.179.158.146] => {“failed”: true}
msg: unsupported parameter for module: checksum

FATAL: all hosts have already failed – aborting

synchronize src=/var/www/ dest=/var/www rsync_opts=–checksum,–exclude=.git

fails with error
failed: [10.179.158.146] => {“failed”: true}
msg: unsupported parameter for module: rsync_opts

FATAL: all hosts have already failed – aborting

What am i doing wrong?

Nothing…

But if you read the documentation at that page you will see that two parameters listed there are marked as (added in Ansible 1.6) (as well as two that are marked (added in Ansible 1.5))…
Those two are checksum and rsync_opts. So you have two choices…

  1. Upgrade to the development version
  2. Don’t use checksum or rsync_opts.

Adam

1.6 is released as of today, you should be good to go :slight_smile: