I have used
https://docs.ansible.com/ansible/latest/collections/community/general/mail_module.html
which is part of the community collection. It works well. I use it for
mailing at the end of provisioning runs and also for patching mails.

Regards
David

On Wed, 15 Jun 2022 at 12:57, Anirban Das <[email protected]> wrote:

> Hi Team,
>
> I need a help to create a playbook for pre-patching notification email. I
> have given sample set of info which should be in subject line. Also, to,cc
> would be changeable according to App Name.
>
> Can anyone pls guide how to set up all those things
>
> Subject Line: CHG No - {{ Asset Name }} {{ App Name }} {{Environment }} OS
> patching on Linux Servers - {{ month }} 2022
>
> Body:
>
> Hi All,
> We are planning to perform the patching on {{App name }} {{ Environment }}
> Linux Servers  in the below mentioned window. This is just a head’s up
> mail. We will send the notification mail  one day prior to patching.
>
> *Scheduled  window:*  (10th June 2022 <Time TZ> to 10th June 2022 <Time
> TZ>).
>
> Regards,
>
> Ani
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b5a67053-01f7-4044-998a-63bbc0f675c8n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/b5a67053-01f7-4044-998a-63bbc0f675c8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
if in trouble, or in doubt
run in circles, scream and shout

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2B8iFp7TwfBN7%3DZiMD_jsdaNHkGZA4k7fhyCANwcd4KoS_pG3g%40mail.gmail.com.

Reply via email to