What you want to do is add a `def v2_playbook_on_stats(self, stats):` method, and put your summary emailing in there.
On Mon, Apr 4, 2016 at 2:55 PM, Chase Farrant <[email protected]> wrote: > Hello all, > > I am probably missing something here. I'm trying to get this mail plugin > working - > https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/callback/mail.py > > If I edit the script by adding mail() to the end, I receive a basic email > immediately with no information when I run a job template (I believe this > is expected). > > The problem is I never receive a summary email when the job is complete. > My assumption is this is supposed to wait around until the job is > completed, then send an email. As expected, I never receive an email at all > if I remove the mail() command I appended to the mail.py script. > > Does anyone have any insight in getting this to work? > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/e1958ef7-65ab-400d-a273-4c47e953d183%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/e1958ef7-65ab-400d-a273-4c47e953d183%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v_HQbASKi0f6N0pcxe_ZcJbu0%3DKWeriwqLKS8Fzp5XoXA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
