Callbacks: v2_runner_on_ok vs v2_playbook_item_on_ok?

183 views
Skip to first unread message

Konstantin Suvorov

unread,
Feb 3, 2016, 9:18:35 AM2/3/16
to Ansible Project
Hello.

I need to get some feedback from ansible runs. I use custom callbacks for this task.
Could someone describe difference between v2_runner_on_ok vs v2_playbook_item_on_ok methods?

During my test runs I see that the v2_runner_on_ok is called when tasks are done, but when is v2_playbook_item_on_ok expected to be called?

Thanks!

Brian Coca

unread,
Feb 3, 2016, 9:26:33 AM2/3/16
to Ansible Project
v2_playbook_item_on_ok is not called 'yet', it is there as placeholder
for when we reintroduce returning info per item, currently in 2.0 we
return all info at the end of the loop, which is not optimal (there
are open tickets on this issue).



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages