# Missing callback hook for task\_started\_for\_host

**URL:** <https://forum.ansible.com/t/missing-callback-hook-for-task-started-for-host/19144>\
**Category:** Ansible Project\
**Created:** [August 29, 2015, 3:58am UTC](https://forum.ansible.com/t/missing-callback-hook-for-task-started-for-host/19144 "2015-08-29T03:58:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Swanson](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@Brian\_Swanson](https://forum.ansible.com/u/Brian_Swanson)\
**Post date:** [August 29, 2015, 3:58am UTC](https://forum.ansible.com/t/missing-callback-hook-for-task-started-for-host/19144/1 "2015-08-29T03:58:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![James\_Martin1](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@James\_Martin1](https://forum.ansible.com/u/James_Martin1)\
**Post date:** [August 29, 2015, 8:40pm UTC](https://forum.ansible.com/t/missing-callback-hook-for-task-started-for-host/19144/2 "2015-08-29T20:40:25Z")

</div>

Brian,

Have you seen this project? [https://github.com/jlafon/ansible-profile](https://github.com/jlafon/ansible-profile)
