# checking for \`--check\` inside callback module

**URL:** <https://forum.ansible.com/t/checking-for-check-inside-callback-module/25207>\
**Category:** Ansible Developer\
**Created:** [August 8, 2017, 6:34pm UTC](https://forum.ansible.com/t/checking-for-check-inside-callback-module/25207 "2017-08-08T18:34:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anand.patel](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@anand.patel](https://forum.ansible.com/u/anand.patel)\
**Post date:** [August 8, 2017, 6:34pm UTC](https://forum.ansible.com/t/checking-for-check-inside-callback-module/25207/1 "2017-08-08T18:34:24Z")

</div>

Hi I am creating a custom callback module and I want it to have different behavior when in `check` mode. However I have not found a way to detect this, is there a way for me to tell as a callback plugin if we are running in check mode?  
The goal is to only run this module when `--check` is enabled.

---

<div class="post-metadata">

**Author:** ![anand.patel](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@anand.patel](https://forum.ansible.com/u/anand.patel)\
**Post date:** [August 8, 2017, 6:35pm UTC](https://forum.ansible.com/t/checking-for-check-inside-callback-module/25207/2 "2017-08-08T18:35:21Z")

</div>

nevermind, found it [https://groups.google.com/forum/#!searchin/ansible-devel/check$20mode|sort:relevance/ansible-devel/41dc3EnZ7eM/le03tWvBBQAJ](https://groups.google.com/forum/#!searchin/ansible-devel/check$20mode%7Csort:relevance/ansible-devel/41dc3EnZ7eM/le03tWvBBQAJ)
