Integrating an automation controller with Slack and notification services
In Chapter 3, Automating Your Daily Jobs, you learned how to use the mail
module to send custom emails using Ansible. In the Ansible automation controller, it is possible to configure Notifications to send emails and messages based on job start, success, or fail status. The following notification types are supported in the automation controller:
- IRC
- Webhook
- Grafana
- Slack
- Mattermost
- PagerDuty
- Rocket.Chat
- Twilio
Multiple notifications can be created and required notifications can be enabled for the job template.
Creating email notifications in the automation controller
To create an email notification, open the Notifications tab from the dashboard and click Add. Select the type as Email and fill in the details, as shown in the following screenshot:
- If the email server is open (no authentication required), then leave the Username and Password fields...