runner_on_ok vs v2_runner_on_ok

51 views
Skip to first unread message

sysadreq -

unread,
Sep 29, 2022, 7:09:08 PM9/29/22
to Ansible Project
Hello Ansible Group,

I was trying to create a custom callback plugin and I noticed a variation on the different callback plugins.

May someone kindly explain what's the difference between runner_on_ok and v2_runner_on_okay?

I tried to google it but couldn't find a documentation.

Thank you.

Matt Martz

unread,
Oct 3, 2022, 9:36:50 AM10/3/22
to ansible...@googlegroups.com
`runner_on_ok` is the v1 callback interface, whereas `v2_runner_on_ok` is the v2 callback interface.

Ultimately, the v2 interface was updated to receive a `Result` object, whereas the v1 interface receives a Host object and a result dictionary.

As such the v2 method will potentially give you access to more information.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f4741f0c-5ba3-494f-a9f1-a669e7ec9bc3n%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages