--- title: Execute Ansible automations for incidents description: Use the Ansible Execution Agent to automatically launch mapped Ansible job templates during incident remediation in the Service Operations Workspace, reducing manual effort and accelerating mean time to resolution. locale: en-us canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/aiops-leap-learning-enhanced-automation-playbooks/execute-ansible-automations-for-incidents.html release: australia product: AIOps LEAP \(Learning-Enhanced Automation Playbooks\) classification: aiops-leap-learning-enhanced-automation-playbooks topic_type: task last_updated: "2025-01-07" reading_time_minutes: 2 keywords: [Ansible execution, incident remediation, automation, Service Operations Workspace] breadcrumb: [Use, Learning Enhanced Automation Platform \(LEAP\), ITOM Visibility, IT Operations Management] --- # Execute Ansible automations for incidents Use the Ansible Execution Agent to automatically launch mapped Ansible job templates during incident remediation in the Service Operations Workspace, reducing manual effort and accelerating mean time to resolution. ## Before you begin Before executing Ansible automations: - The Ansible Execution Agent must be configured and enabled - Step-to-job mappings must exist for the predicted automation opportunity group For more information, refer to [Map Ansible jobs to resolution steps](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/aiops-leap-learning-enhanced-automation-playbooks/map-ansible-jobs-to-resolution-steps.md). Role required: LEAP agent ## About this task When an incident arrives in SOW, LEAP predicts the automation opportunity group using existing clustering. For critical automation opportunities where resolution steps are generated, if step-to-job mappings exist for that group, automation options are presented to incident responders for execution. ## Procedure 1. In SOW, select the incident. 2. In the **Recommendations** section, review the available automation options. This section appears only if LEAP has predicted a critical automation opportunity group with step-to-job mappings. 3. Select the required method to complete the resolution
| Method | Steps |
|---|---|
| **Manual** | 1. Review the manual step description provided by the agent. 2. Perform the required manual actions. 3. Select **Step Completed** to confirm that the manual step is finished. |
| **Automated** | 1. Select **Execute Ansible Playbook**. 2. Provide the required inputs when prompted and confirm to proceed. |