recap of failed tasks

Hello,

Is there an easy way to run a playbook and have a recap with the name of the failed task on a host when a host fails ?

currently the digest says that a host has failed but does not recap why. usually it is way up and lost in the console so you can’t even go back and find it.

Thanks
Jerome

You could increase your scrollback or tee to a logfile.

AWX is also great at recording history and you can look at past events per job on a host by host basis.

I use the logfile callback plugin and just look at ~/ansible.log

Callbacks are a good way to handle it. I had a callback that tracked that and summarized at the end.

I ended up removing that portion of the code before it hit our git repo, but it was pretty easy to implement.