With this, we come to the end of this chapter where we've seen how to handle errors using rollbacks, how to use callbacks in general, and how to report and alert using tasks as well as callbacks. Along the way, we've also seen other tools such as etcd
, MySQL database, HipChat, E-mail, Nagios, and Graphite, and how to integrate Ansible with them. These are definitely some common as well as easy implementations that provide great value to Ansible users. Finally, it's very important that you have a strong feedback loop in your infrastructure and you've seen a few of those techniques in action in this chapter.
It's also time for a coffee break. As usual, we have a few questions for you to ponder over and discuss with your team as follows:
What monitoring system do you have and what features from this chapter would benefit you the most?
If you use callbacks, what would you want your callbacks to do?
If you want to alert, about what would you alert?
We hope that you’ll revisit the roles that...