# flag in callback if run with or without "--check"

**URL:** <https://forum.ansible.com/t/flag-in-callback-if-run-with-or-without-check/18499>\
**Category:** Ansible Project\
**Created:** [June 15, 2015, 9:20am UTC](https://forum.ansible.com/t/flag-in-callback-if-run-with-or-without-check/18499 "2015-06-15T09:20:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Reter](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Post date:** [June 15, 2015, 9:20am UTC](https://forum.ansible.com/t/flag-in-callback-if-run-with-or-without-check/18499/1 "2015-06-15T09:20:24Z")

</div>

how to tell (inside a callback), if the playbook is run with or without “–check”

thanks

---

<div class="post-metadata">

**Author:** ![Jeff\_Reter](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Post date:** [June 15, 2015, 9:30am UTC](https://forum.ansible.com/t/flag-in-callback-if-run-with-or-without-check/18499/2 "2015-06-15T09:30:16Z")

</div>

that was easy:

self.playbook.check

where is the doc for things like this?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 15, 2015, 2:27pm UTC](https://forum.ansible.com/t/flag-in-callback-if-run-with-or-without-check/18499/3 "2015-06-15T14:27:32Z")

</div>

not really, most docs are for usage not on the api, there are  
developer docs for modules/task plugins but not for the rest.

---

<div class="post-metadata">

**Author:** ![Jeff\_Reter](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Post date:** [June 15, 2015, 2:37pm UTC](https://forum.ansible.com/t/flag-in-callback-if-run-with-or-without-check/18499/4 "2015-06-15T14:37:27Z")

</div>

☹

and docs inside the code?

i need the ssh command inside this callback
