# Running the "command" module in check mode (--check)

**URL:** <https://forum.ansible.com/t/running-the-command-module-in-check-mode-check/17626>\
**Category:** Ansible Project\
**Created:** [February 26, 2015, 12:05pm UTC](https://forum.ansible.com/t/running-the-command-module-in-check-mode-check/17626 "2015-02-26T12:05:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas1](https://avatars.discourse-cdn.com/v4/letter/n/b5ac83/32.png) [@Nicolas1](https://forum.ansible.com/u/Nicolas1)\
**Post date:** [February 26, 2015, 12:05pm UTC](https://forum.ansible.com/t/running-the-command-module-in-check-mode-check/17626/1 "2015-02-26T12:05:11Z")

</div>

Hello,

I have a task that uses a home made php script, for which I use the “command” module. In my php script I have an option the run in check mode. Is there a way to know that the playbook is running in check mode and call my php script accordingly ?

Thank you

Nicolas
