Ansible mail callback

Hi Team,

How to configure mail callback to generate the report as email for failed jobs?

Thanks