Event-Driven Automation with Ansible
As you must have noticed about the recipes in this book, so far, the focus has been on more traditional on-demand executions. Here, instead of relying on periodic checks or manual triggers, event-driven automation empowers networks to respond in real time to changes (also known as events). Network automation often attempts to solve mundane, repeatable tasks in which a high percentage are the result of an event. Wouldn’t it be great to auto-trigger workflows without needing to get involved?
This chapter introduces the new event-driven architecture that Ansible supports and how it can create new network automation solutions. As network automation becomes more sophisticated and information systems improve with more programmable interfaces, event-driven automation offers powerful workflow capabilities that can be triggered based on notifications/events occurring; furthermore, event-driven automation offers the added optimization of asynchronous...