E-mail Playbook Results of Ansible Run

270 views
Skip to first unread message

Jon Adcock

unread,
Nov 11, 2017, 1:22:33 PM11/11/17
to Ansible Project
I've setup an Ansible (v2.4) playbook that configures/checks for compliance with a list of (STIG-based) security checks.  I have this playbook scheduled in cron to run weekly but I really want to get an e-mail reporting on the results of each playbook run.  Is there something built into Ansible Core that will do this (we don't have Ansible Tower), or do I need to manually put something together to do that?   I can envision what a manual script would need to do, but I would rather use a built-in feature if one is available.

Kai Stian Olstad

unread,
Nov 12, 2017, 9:45:28 AM11/12/17
to ansible...@googlegroups.com
You have a callback plugin called mail[1], it only report failure so if you need more you would need to change it.


[1] https://docs.ansible.com/ansible/devel/plugins/callback/mail.html


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages