Sometimes, you want your playbooks to be agnostic in the way you receive the alert. This has several advantages, mainly in terms of flexibility. In fact, in this model, Ansible will deliver the messages to a notification service and the notification service will then take care of delivering them. Amazon Simple Notification Service (SNS) is not the only notification service available, but it's probably the most used. SNS has the following components:
- Messages: Messages generated by publishers identified by a UUID
- Publishers: Programs generating messages
- Topics: Named groups of messages, which can be thought of in a similar way to chat channels or rooms
- Subscribers: Clients that will receive all messages published in the topics they have subscribed to
So in our case, we will have, specifically, the following:
- Messages: Ansible notifications...