Missing callback hook for task_started_for_host

13 views
Skip to first unread message

Brian Swanson

unread,
Aug 28, 2015, 11:58:25 PM8/28/15
to Ansible Project
I'd like to know how I can get a playbook callback hook that tells me when a task has first been dispatched to a specific host.  

I have already hooked into the callback modules for every event, but none of the events indicates that a task was dispatched to a particular host.  I'm only allowed to know if the host was skipped, if the host failed, when the task completed for the host, or if the host was unreachable.  

I want to know when the task was started for each given host.  This will allow me to produce an easily parseable database activity log that shows what is currently running, and on behalf of what hosts, and for which I don't currently have a result for.  Also, when I do get the result, it will enable me to record the duration that the host took in order to complete the task.

Any ideas or comments as to what I may be missing?

Thanks

Brian

James Martin

unread,
Aug 29, 2015, 4:40:25 PM8/29/15
to Ansible Project
Brian,

Have you seen this project? https://github.com/jlafon/ansible-profile
Reply all
Reply to author
Forward
0 new messages