# Synchronize module with ansible-pull

**URL:** <https://forum.ansible.com/t/synchronize-module-with-ansible-pull/21339>\
**Category:** Ansible Project\
**Created:** [May 3, 2016, 10:44am UTC](https://forum.ansible.com/t/synchronize-module-with-ansible-pull/21339 "2016-05-03T10:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karibou\_Hunter](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@Karibou\_Hunter](https://forum.ansible.com/u/Karibou_Hunter)\
**Post date:** [May 3, 2016, 10:44am UTC](https://forum.ansible.com/t/synchronize-module-with-ansible-pull/21339/1 "2016-05-03T10:44:27Z")

</div>

Hi all,

I have an error with this task :

`

- name: sync app directory  
synchronize:  
mode: pull  
src: rsync://192.168.1.1/home/user/files\_www/  
dest: “/var/www/example.com/”  
become: false

`

running _ansible-pull -vvv -o -d /home/user/repo -i /home/lvd/repo/hosts -U gitaddress_

` TASK [role_name : sync app directory] ************************************ task path: /home/user/repo/roles/app/tasks/deploy_app.yml:8 ESTABLISH LOCAL CONNECTION FOR USER: user 127.0.0.1 EXEC /bin/sh -c '( umask 22 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189 `" && echo "` echo $HOME/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189 `" )’  
127.0.0.1 PUT /tmp/tmp8Ovb03 TO /home/user/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189/synchronize  
127.0.0.1 EXEC /bin/sh -c ‘LANG=en\_US.UTF-8 LC\_ALL=en\_US.UTF-8 LC\_MESSAGES=en\_US.UTF-8 /usr/bin/python /home/user/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189/synchronize; rm -rf “/home/user/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189/” \> /dev/null 2\>&1’  
fatal: [127.0.0.1]: FAILED! =\> {“changed”: false, “cmd”: “/usr/bin/rsync --delay-updates -F --compress --archive --rsh ‘/usr/bin/ssh -S none -o StrictHostKeyChecking=no’ --out-format=‘\<\>%i %n%L’ "/home/user/repo/rsync:/192.168.1.1/home/user/files\_www/" "/var/www/example.com/"”, “failed”: true, “invocation”: {“module\_args”: {“\_local\_rsync\_path”: “rsync”, “\_substitute\_controller”: false, “archive”: true, “checksum”: false, “compress”: true, “copy\_links”: null, “delete”: false, “dest”: “/var/www/example.com/”, “dest\_port”: 22, “dirs”: false, “existing\_only”: false, “group”: null, “links”: null, “mode”: “pull”, “owner”: null, “partial”: false, “perms”: null, “private\_key”: null, “recursive”: null, “rsync\_opts”: null, “rsync\_path”: null, “rsync\_timeout”: 0, “set\_remote\_user”: false, “src”: “/home/user/repo/rsync:/192.168.1.1/home/user/files\_www/”, “ssh\_args”: null, “times”: null, “verify\_host”: false}}, “msg”: “rsync: change\_dir "/home/user/repo/rsync:/192.168.1.1/home/user/files\_www/” failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]\n", “rc”: 23}

`

As we can see, the current working directory is placed before the source path :

`"src": "/home/user/repo/rsync:/192.168.1.1/home/user/files_www/"`

I missed something or this behavior is actually a bug ?

Thanks in advance
