Now that you understand the big picture of where you want to apply event-driven automation, we can start your team’s learning journey. Similar to implementing new automation instances, Red Hat recommends a start small, think big approach to explore what Event-Driven Ansible can do. In this section, we will discuss some simple-yet-progressive ways you can learn before you apply the advanced use cases we discussed above.
Taking a start small, think big approach to Event-Driven Ansible
The following examples can help you understand and gradually implement Event-Driven Ansible, so you can grow your automation sophistication.
Gather facts
When a ticket comes in, the EventDriven Ansbile rulebook may define an action to reach out to the affected device and gather and add the configuration information to a trouble ticket. So, when the support person responds to the ticket, this information they require is already present and they are able to address the issue faster. This simple step saves time, reduces toil and churn, and is a great use case that has low impact while you learn.
Generate a service ticket
When a condition is identified by your observability tool, Event-Driven Ansible can automatically generate a ticket in an IT service management (ITSM) solution or post a notification to an internal messaging system, such as Slack or a packaged application. For example, in the event a security certificate is about to expire, your rulebook can create an alert and automatically generate a service ticket.
Send a notification
Take the automatic ticket generation a step further where you can also send a notification to the right person on your team to address the event. For example, if a network or edge device is not responding, Event-Driven Ansible can create a ticket and notify the right person, which can accelerate response time.
Do basic remediation
The next step is basic remediation which might include resetting or rebooting a system and sending a notification if necessary. For example, if some part of the network or an edge device is not responding, Event-Driven Ansible can automatically create a ticket along with performing a basic reboot. If the basic reboot does not work, a person can be paged or notified as part of the automation sequence.
Perform advanced remediation
With the previous steps mastered, you are ready to bring in multiple event sources and correlate them, to orchestrate the response that best suits your needs. For example, in the event that a basic reboot does not work, Event-Driven Ansible, based on your prewritten Ansible rulebook, can read a second event and find out which neighboring device is available and can reroute the network traffic. An important thing to remember is that Event-Drive Ansible can execute your already developed automation as an action according to rulebook conditions. This allows you to supplement your automation by integrating Event-Driven Ansible with existing playbooks.