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

24 views
Skip to first unread message

Jeff Reter

unread,
Jun 15, 2015, 5:20:24 AM6/15/15
to ansible...@googlegroups.com
how to tell (inside a callback), if the playbook is run with or without "--check"

thanks

Jeff Reter

unread,
Jun 15, 2015, 5:30:16 AM6/15/15
to ansible...@googlegroups.com
that was easy:

self.playbook.check

where is the doc for things like this?

Brian Coca

unread,
Jun 15, 2015, 10:27:35 AM6/15/15
to ansible...@googlegroups.com
not really, most docs are for usage not on the api, there are
developer docs for modules/task plugins but not for the rest.
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fc9e0aad-d830-457e-974b-05f161ad8a7f%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca

Jeff Reter

unread,
Jun 15, 2015, 10:37:27 AM6/15/15
to ansible...@googlegroups.com
:-(

and docs inside the code?

i need the ssh command inside this callback
Reply all
Reply to author
Forward
0 new messages