# Module synchronize in Ansible

**URL:** <https://forum.ansible.com/t/module-synchronize-in-ansible/30892>\
**Category:** Ansible Project\
**Created:** [July 29, 2019, 8:11am UTC](https://forum.ansible.com/t/module-synchronize-in-ansible/30892 "2019-07-29T08:11:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karther](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Karther](https://forum.ansible.com/u/Karther)\
**Post date:** [July 29, 2019, 8:11am UTC](https://forum.ansible.com/t/module-synchronize-in-ansible/30892/1 "2019-07-29T08:11:34Z")

</div>

Hey guy !!

I have on problem, i want synchronize two repertory who are in destination host (source and destination), my task is :

- name: “Copie de la partie front-office”  
synchronize:  
src: /var/apps/hospitalis-frontoffice/{{ version }}/fo/hospitalisV3Front-{{ version }}-RELEASE/hospitalisV3Front/dist/  
dest: /home/wildfly/apache/webapp/front-office-{{ version }}

Same with this option **remote\_src: yes** this task not works !! ☹

The message error is :

fatal: [my\_host]: FAILED! =\> {“changed”: false, “cmd”: “/usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o Port=22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --out-format=\<\>%i %n%L /var/apps/hospitalis-frontoffice/3-29-0/fo/hospitalisV3Front-3-29-0-RELEASE/hospitalisV3Front/dist/ wildfly@my\_host:/home/wildfly/apache/webapp/front-office-3-29-0”, “msg”: “Warning: Permanently added ‘my\_host,10.25.23.220’ (ECDSA) to the list of known hosts.\r\nbash: rsync: command not found\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.1]\n”, “rc”: 12}

I specify that **source and destination** are on **host destination** and not in localhost.

Someone have any idea please ?!!!

Thanks for your help !! 🙂

Regards,

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [July 29, 2019, 3:03pm UTC](https://forum.ansible.com/t/module-synchronize-in-ansible/30892/2 "2019-07-29T15:03:59Z")

</div>

It clearly says it:

rsync: command not found

So start by fixing that.

Dick
