Ansible develop branch, callback_plugins are not triggered

102 views
Skip to first unread message

Frank van Tol

unread,
Sep 11, 2015, 6:19:30 AM9/11/15
to Ansible Project

I am trying to get a timing/profile callback plugin to work, so far I've found several versions, each with different interfaces but none of them are triggered.

I did add a callback_plugins item to ansible.cfg.

Brian Coca

unread,
Sep 11, 2015, 11:31:32 AM9/11/15
to Ansible Project
devel includes it's own timer plugin, you can enable it by updating ansible.cfg:

callback_whitelist = timer


--
Brian Coca

Frank van Tol

unread,
Sep 11, 2015, 2:00:40 PM9/11/15
to Ansible Project
Thanx for pointing me to the whitelist feature.

I found the plugins, some have different interfaces (some starting with v2_) and don't seem to work as-is.
For example, profile_tasks says to be upgraded to v2 but gives this:

 [WARNING]: Error when using <bound method CallbackModule.v2_playbook_on_stats of
<ansible.plugins.callback.profile_tasks.CallbackModule object at 0x7f8c625c3450>>: global name 'display' is not defined



Op vrijdag 11 september 2015 17:31:32 UTC+2 schreef Brian Coca:

Brian Coca

unread,
Sep 11, 2015, 4:46:45 PM9/11/15
to Ansible Project
profile_tasks was not ported correctly, fixed now.


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