after upgrading to ansible 2.0 i am getting an error when trying to synchronize a directory to a remote server. Ansible version: 2.0.0.2
The entire playbook runs with sudo:yes, but the error only happens on the synchronize module. does anyone have have an idea or places to look to resolve my issue?
I switched from synchronize to copy and everything works, but obviously very slow.
---
- name: copy source to host directory
synchronize: >
src=../../../src/
dest=/var/www/aaa-newsletter-builder
times=no
perms=no
group=no
{
"_ansible_no_log": false,
"module_stderr": "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?\n",
"changed": false,
"module_stdout": "",
"failed": true,
"parsed": false,
"msg": "MODULE FAILURE",
"play": "build email builder",
"task": "TASKNAME : copy source to host directory",
"role": "ROLENAME",
"ignore_errors": null,
"status": "failed",
"module_name": "synchronize",
"module_args": "",
"created": "2016-02-23T15:09:08.183Z",
"host_id": 10,
"host_name": "REDACTED",
"id": 22370,
"parent": 22369,
"event": "Host Failed"
}