synchronize module and check_mode

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

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?

Thanks!

Thanks!

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!

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