here is my playbook
---
     - hosts:all
       tasks:
          -   name: send mail
              mail:
                    host: "smtp.gmail.com"
                    port: 587
                    sender: "x...@gmail.com"
                    to: "Prajwal H G <x...@cc.com>"
                    subject: "Report for { { ansible_hostname } }"
                    body: "Server { { ansible_hostname } } has bene updated"
             delegate_to: localhost

On Fri, 18 Sep 2020 at 11:25, Dick Visser <dick.vis...@geant.org> wrote:

>
> Post your playbook
>
> On Fri, 18 Sep 2020 at 07:53, Prajwal Gowda <prajwalgowda...@gmail.com>
> wrote:
>
>> hi team i need one help with the mail module
>> it is throwing error address family not supported
>> if anyone know how to send mail when the task failed please help
>>
>> thanks
>> prajwal h g
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>>
>> 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 ansible-project+unsubscr...@googlegroups.com.
>>
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAMQ8AOioANh_WaQ9j5ux3DJVNDNmCkJ2f%2BxRCzhzF9Xwoqkd3A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAMQ8AOioANh_WaQ9j5ux3DJVNDNmCkJ2f%2BxRCzhzF9Xwoqkd3A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNO%2BB2sBwS%2Bmxz6vWe4QpmzpaBLti8iOhDHncKmh1E-%2Bg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAL8fbwNO%2BB2sBwS%2Bmxz6vWe4QpmzpaBLti8iOhDHncKmh1E-%2Bg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMQ8AOii8QMH1QZ5S-Gct0bckubgsbDK2pxHmGBrW3x7XA%2BkvQ%40mail.gmail.com.

Reply via email to