How it the best way to manage output job from invoke ansible playbook?

Hi community!

I have a job that invokes ansible playbook. My question is, what is the best way to extract the console output ? i’m very interesting on “PLAY RECAP” part, to collect “failed” records and show it in a report for example or export it in a csv file.

Regards!