Checking for `--check` or `--dry-run` inside callback module

9 views
Skip to first unread message

anand...@mulesoft.com

unread,
Aug 7, 2017, 4:55:43 PM8/7/17
to Ansible Project
Hi I am creating a custom callback module and I want it to have different behavior when in `check` or `dry-run` 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 dry-run or check is enabled.

Kai Stian Olstad

unread,
Aug 8, 2017, 9:00:12 AM8/8/17
to ansible...@googlegroups.com
For development question you might have better luck in the development
mailing list https://groups.google.com/forum/#!forum/ansible-devel


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages