
You didn't mention awx or Ansible Automation, so I assume you are using command line.
ansible-playbook someplay.yml | sed -n '/PLAY RECAP /,$p' | egrep 'failed=[1-9]'
sed - only print the lines from "PLAY RECAP " top the end.
egrep - only print lines that contain "failed=" with a non zero first digit.
And then I would add '~~~' at the beginning and the end.
Is that the mark down you are looking for?
Regards,
Stan

Thank you very much!
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ansible-proje...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/17d9e52a-35a6-4520-8d9e-e78d33ecd7fan%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/PH0PR10MB55931CF7C8662E52A0E966CCF0479%40PH0PR10MB5593.namprd10.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEcFzYw1oT%2BwPKRusCu0_9Six82_eSrMhi44zpEscANsQ-xOtA%40mail.gmail.com.