Guidance needed on sending mail using ansible

15 views
Skip to first unread message

nandha kumar

unread,
Jul 27, 2020, 4:14:22 AM7/27/20
to Ansible Project
Hi Team,

Is it possible to send mail in a specific format which we needed?
For example. below

I would need to send a mail in this tabular format.. Is it possible?
If not, kindly suggest me some way to improve my email Body

Thanks,
Nandhakumar

Dick Visser

unread,
Jul 27, 2020, 8:26:11 AM7/27/20
to ansible...@googlegroups.com
The Ansible mail module only cares about a body being there - it's up to you to define what it looks like. There are a million different ways to construct an email body - none of which is on-topic for this list.
Having said that, I would probably use that example message, and try to reconstruct its layout using jinja2 template.


--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/966cf816-142b-4dd1-a8be-5712347a5163o%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages