Automating notifications
It is very important to notify the administrators and end users about the changes you are making in the environment. Whether it’s a simple package installation or a system reboot, the end user should be aware of the downtime and changes that are occurring. Instead of sending emails manually, the Ansible mail
module can be used to automate email notifications. The Ansible mail
module is powerful and can support most email features, including custom headers, attachments, and security.
Encrypting sensitive data using Ansible Vault
If the email server (SMTP) is not open (configured to send email without authentication), then you need to authenticate the SMTP server with a username and password (app password or secret key). Keeping such sensitive information in plain text is not a best practice, so you need to store it in a safe method. To store such sensitive information, use key vault tools, in which the information will be saved in an encrypted format...