# new synchronize module: can't specify relative path in playbook

**URL:** <https://forum.ansible.com/t/new-synchronize-module-cant-specify-relative-path-in-playbook/13966>\
**Category:** Ansible Project\
**Created:** [November 22, 2013, 3:41am UTC](https://forum.ansible.com/t/new-synchronize-module-cant-specify-relative-path-in-playbook/13966 "2013-11-22T03:41:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![senorsmile](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/senorsmile/32/9024_2.png) [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Post date:** [November 22, 2013, 3:41am UTC](https://forum.ansible.com/t/new-synchronize-module-cant-specify-relative-path-in-playbook/13966/1 "2013-11-22T03:41:34Z")

</div>

I’m trying the following:

> - name: Ensure adminer installed and up to date  
> synchronize:  
> src=roles/mysql/templates/adminer.php  
> dest=/var/www/adminer.php

I first tried just specifying the file name, as it should be automatically found in the templates.  
I always get a version of this message on failure:

> msg: rsync: link\_stat “/root/adminer.php” failed: No such file or directory (2)

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [November 22, 2013, 7:21am UTC](https://forum.ansible.com/t/new-synchronize-module-cant-specify-relative-path-in-playbook/13966/2 "2013-11-22T07:21:41Z")

</div>

I suspect it already knows about your role path and you are specifying too much, but is that the full output? If so that seems suboptimal and you should file a ticket.

– Michael

---

<div class="post-metadata">

**Author:** ![senorsmile](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/senorsmile/32/9024_2.png) [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Post date:** [November 22, 2013, 9:57pm UTC](https://forum.ansible.com/t/new-synchronize-module-cant-specify-relative-path-in-playbook/13966/3 "2013-11-22T21:57:00Z")

</div>

No, that was clipped error message.

I tried specifying the full path on a different role in the same playbook, and got pretty much the same thing:

> failed: [aws01] =\> {“cmd”: “rsync --delay-updates --compress --timeout=10 --archive --rsh ‘ssh -o StrictHostKeyChecking=no’ --out-format=‘\<\>%i %n%L’ /home/shaun/bt/am/ /var/www/servers/am/”, “failed”: true, “rc”: 23}  
> msg: rsync: change\_dir “/home/shaun/bt/am” failed: No such file or directory (2)  
> rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9]

Before filing a ticket, I’ll transfer playbook to a different machine as I suspect I’ve messed something up with all of the hacking I’ve done in /usr/share/ansible/ while trying to figure out how to make my own modules. May need to do a full reinstall.
