there is a PR (not a feature yet) to set ansible_check_mode variable so you can figure out if you are in check mode or not and make your execution conditional on it.
---------- Brian Coca -- 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/CACVha7d3jWMVa4ibtNr_3cS%3D%3Dk4o013oWAXL7%3DAUBy2%3DP8Nt%2BA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
