So the mail module is not correctly capturing the exception, but the base issue that causes the problem is:
[Errno 111] Connection refused Which might happen for many reasons, most likely resource starvation (num of connections/file descriptors/firewall throttle/etc). I would check dmesg and other logs for the same period on both machines (the one executing the task and smtp server) to see if either hit a limit. -- ---------- Brian Coca -- 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/CACVha7eDtyMprE9_LhG3C%2Bii4qCbad-uadrHW%3DwN8GbZdEmfHw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
