Hi Experts,
I am facing issue with by below playbook on 2 scenarios
1) How to send mails using ansible without defining the password of the
account. using SMTP username and password now in the play to send mail. but
is there any alternate way to avoid specifying password or using the
encryption for password.
- name: Send email
mail:
host: smtpserver.com
port: 25
username: mydomainID
password: mypass
subject: "Ansible test mail"
attach: /opt/IBM/605CLM/JazzTeamserver/server/liberty/servers/clm/
logs/jts.log
body: "Testing email"
from: mymailid.com
to:
- mymailid.com
charset: utf8
secure: never
2) Lokking for a way to attach the log file in the mail after starting the
application. but it failing.. any advise please.
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/dadb6ae4-b011-4941-aee3-ef052ee8f19b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.