# syncronize module: ignoreif local source does not exist

**URL:** <https://forum.ansible.com/t/syncronize-module-ignoreif-local-source-does-not-exist/19031>\
**Category:** Ansible Project\
**Created:** [August 15, 2015, 7:27pm UTC](https://forum.ansible.com/t/syncronize-module-ignoreif-local-source-does-not-exist/19031 "2015-08-15T19:27:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Arnonym](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Robert\_Arnonym](https://forum.ansible.com/u/Robert_Arnonym)\
**Post date:** [August 15, 2015, 7:27pm UTC](https://forum.ansible.com/t/syncronize-module-ignoreif-local-source-does-not-exist/19031/1 "2015-08-15T19:27:25Z")

</div>

Hello

i have the following task:

`

- name: Copying webcontent  
synchronize: src=some/relative/path/{{ item }} dest=/some/absolute/path/{{ item }}  
with\_items:
- some
- other

`

what i need:  
“other” does not exist locally and thats ok. How can i check, if the items exist locally and skip the cycle if not?

Thx

---

<div class="post-metadata">

**Author:** ![Diep\_Pham](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Diep\_Pham](https://forum.ansible.com/u/Diep_Pham)\
**Post date:** [August 16, 2015, 4:46am UTC](https://forum.ansible.com/t/syncronize-module-ignoreif-local-source-does-not-exist/19031/2 "2015-08-16T04:46:13Z")

</div>

Following codes should work.

`
