gathering metrics on ansible runs

Hi folks,

Thanks again for this great new generation tool.

What is the most straightforward way to gather statistics on repeated ansible runs? I plan to configure and deploy many things, unattended tasks also — and have exact picture on how long everything takes.

I would expect some pre/post task hooks that allow me to gather timers (and results/errors too) on per-task basis and report to some Zabbix or Sentry perhaps.

Thanks!

You could write a callback module, or on the simpler end, just use the “time” command.

Thanks Michael!

Callbacks are what I was looking for.

Long live!