Yes, the Windows module API has supported check mode since 2.0. To express 
your module's support for check mode, pass $true as the second arg to 
Parse-Args (supports_check_mode). Modules that don't pass that will exit 
out with "skipped" from Parse-Args when check mode is requested.

To see if you're actually in check mode from your module code, look for the 
module parameter "_ansible_check_mode" to be $true.

On Wednesday, May 4, 2016 at 1:01:22 PM UTC-7, [email protected] wrote:
>
> Is there a way to implement check mode in a custom Windows module? I 
> didn't see anything in the documentation about it, and none of the several 
> core modules I checked contained an example.
>
> Thanks,
> Eric
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/131ffa29-705b-479a-aec0-14485fae717d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to