body: "Hello, this is an e-mail. I hope you like it ;-)"
This code is fine...but im getting error like this.......I tried 25,465.587 ports
[root@ansible-hyd ~]# ansible-playbook email.yml
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [sending mail] ************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to send mail to server
smtp.gmail.com on port 25: [Errno 101] Network is unreachable", "rc": 1}
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @email.retry
PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1