Hi All, anyone got a pride idea how to email the play recap output only?
Thanks a million
Gisbert
Hi All, anyone got a pride idea how to email the play recap output only?
Thanks a million
Gisbert
Use ansible-runner. The recap will be available among the artifacts
https://ansible-runner.readthedocs.io/en/stable/intro.html#runner-artifacts-directory-hierarchy
FWIW, see example of how to get custom status including the recap
https://ansible-runner-role.readthedocs.io/en/latest/example3-status.html
It should be easy to modify the wrapper to your needs
https://github.com/vbotka/ansible-runner/blob/master/contrib/arwrapper.bash
A custom callback can do it, see the existing email one as example
https://docs.ansible.com/ansible/latest/collections/community/general/mail_callback.html