Integrating with third-party services
Although you may be the one running the playbooks, you may keep a log of your playbook run or keep other members of your team or even other departments up to date with the results of the playbook run. Ansible ships with several core modules that allow you to work with third-party services to provide real-time notifications.
Slack
Slack has very quickly become the go-to choice for team-based collaboration services for various departments in IT services. Not only does it support third-party applications via its App Directory, but it also has a powerful API that you can use to bring your tools into the chat rooms provided by Slack.
We are going to look at the example in this section, the full playbook, which can be found in the Chapter17/slack
folder in the GitHub repository. I have taken the playbook from Chapter 9, Building Out a Cloud Network, where we created a VPC in AWS, and I have adapted it to use the slack
Ansible module.
Generating a token
Before we...