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

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

thanks

that was easy:

self.playbook.check

where is the doc for things like this?

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

:frowning:

and docs inside the code?

i need the ssh command inside this callback