---
title: "From incident to remediation: Building an AI-driven AIOps workflow with Red Hat Ansible Automation Platform"
description: "This tutorial builds an AIOps workflow for diagnosing and remediating a deliberately induced CPU incident in a product catalog application running on an AWS EC2 instance with RHEL. An Ansible investigation playbook collects CPU utilization, top processes, application status, and HTTP health evidence, which Claude Code analyzes through MCP to identify the Python process as the likely contributor and recommend the approved “AIOps - Remediate High CPU” Job Template. AI does not access the host directly: Ansible Automation Platform retains responsibility for credentials, inventory, execution, and remediation. The remediation changes the application from HTTP 503 and degraded to HTTP 200 and healthy, while a final health check confirms recovery and completes the detect-investigate-analyze-recommend-execute-verify sequence."
---

# From incident to remediation: Building an AI-driven AIOps workflow with Red Hat Ansible Automation Platform

[Red Hat](https://yomu.fyi/company/red-hat) · Neha Chugh · Sep 5, 2026

**Type:** Tutorial

## Summary

This tutorial builds an AIOps workflow for diagnosing and remediating a deliberately induced CPU incident in a product catalog application running on an AWS EC2 instance with RHEL. An Ansible investigation playbook collects CPU utilization, top processes, application status, and HTTP health evidence, which Claude Code analyzes through MCP to identify the Python process as the likely contributor and recommend the approved “AIOps - Remediate High CPU” Job Template. AI does not access the host directly: Ansible Automation Platform retains responsibility for credentials, inventory, execution, and remediation. The remediation changes the application from HTTP 503 and degraded to HTTP 200 and healthy, while a final health check confirms recovery and completes the detect-investigate-analyze-recommend-execute-verify sequence.

## Context

The workflow addresses the challenge of turning AI-assisted incident analysis into a safe, repeatable action. The demonstration uses a product catalog application with an intentionally injected CPU spike, producing high CPU utilization and a degraded health response instead of relying on a hypothetical alert.

## Approach / What changed

Ansible Automation Platform gathers structured evidence from the RHEL host, Claude Code analyzes it through the MCP server and selects an approved remediation Job Template, and Ansible executes the remediation without giving AI direct SSH access. A separate health-check workflow verifies recovery.

## Takeaways

- Ansible collects CPU utilization, top CPU-consuming processes, application status, and HTTP health evidence before AI analysis.
- Claude Code identifies the Python application process as the likely contributor and recommends the approved “AIOps - Remediate High CPU” Job Template, which has start permission.
- The remediation restores the application from HTTP 503 and degraded to HTTP 200 and healthy; a health-check workflow confirms the recovery.

**Tags:** [AI Agents](https://yomu.fyi/topic/ai-agents), [AIOps](https://yomu.fyi/topic/aiops), [Ansible](https://yomu.fyi/topic/ansible), [MCP](https://yomu.fyi/topic/mcp)

- Source: [Red Hat](https://developers.redhat.com/articles/2026/09/05/building-an-ai-driven-aiops-workflow-with-red-hat-ansible-automation-platform)
- Source URL: https://developers.redhat.com/articles/2026/09/05/building-an-ai-driven-aiops-workflow-with-red-hat-ansible-automation-platform
- Ingested by Yomu: 2026-09-05T04:00:52.282Z

[Read original post](https://developers.redhat.com/articles/2026/09/05/building-an-ai-driven-aiops-workflow-with-red-hat-ansible-automation-platform)
