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.
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 post to this group, send email to firstname.lastname@example.org.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.