# synchronize module and check\_mode

**URL:** <https://forum.ansible.com/t/synchronize-module-and-check-mode/14644>\
**Category:** Ansible Project\
**Created:** [February 24, 2014, 8:54pm UTC](https://forum.ansible.com/t/synchronize-module-and-check-mode/14644 "2014-02-24T20:54:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimos\_Alevizos](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dimos\_Alevizos](https://forum.ansible.com/u/Dimos_Alevizos)\
**Post date:** [February 24, 2014, 8:54pm UTC](https://forum.ansible.com/t/synchronize-module-and-check-mode/14644/1 "2014-02-24T20:54:40Z")

</div>

Hi,

I have a problem with the synchronize module on ansible 1.4. It seems it ignores the --check but I can’t figure out why, the code seems fine to me.

I created a simple playbook to experiment with the module :

root@vader:ansible $ cat poppers-sync.yml

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [February 24, 2014, 8:56pm UTC](https://forum.ansible.com/t/synchronize-module-and-check-mode/14644/2 "2014-02-24T20:56:59Z")

</div>

This is a bug where it needs to note the check mode flag and bail out.

Normally this is an infrastructure all modules have access to but synchronize is implemented a little differently so it can’t leverage that.

Can you please file this as a bug on [github.com/ansible/ansible](http://github.com/ansible/ansible)?

Thanks!

Thanks!

---

<div class="post-metadata">

**Author:** ![Dimos\_Alevizos](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dimos\_Alevizos](https://forum.ansible.com/u/Dimos_Alevizos)\
**Post date:** [February 24, 2014, 9:13pm UTC](https://forum.ansible.com/t/synchronize-module-and-check-mode/14644/3 "2014-02-24T21:13:04Z")

</div>

Ah, I thought that only “supports\_check\_mode = True” was required along with an appropriate action when module.check\_mode was true.

Ok I’ll file the bug.

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [February 24, 2014, 9:18pm UTC](https://forum.ansible.com/t/synchronize-module-and-check-mode/14644/4 "2014-02-24T21:18:33Z")

</div>

Yep, it’s a bit different when something is an action plugin and not a basic module.
