AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

Ansible AI-Driven Automation Architecture: 4 Entry Points for GenAI, API, EDA, and MCP

By Luca Berton · Published 2024-01-01 · Category: events

Understand the 4 AI-driven automation entry points in Ansible: GenAI Web UI, API agents, EDA observability, and MCP assistants.

Red Hat Ansible Automation Platform serves as the trusted execution layer for AI-driven IT operations, providing four distinct entry points for AI-powered automation — each with different levels of human oversight and autonomy.

The 4 Entry Points

┌──────────────┬──────────────┬──────────────┬──────────────┐
│  GenAI       │  Custom AI   │ Observability│  MCP-native  │
│  automation  │  agents      │  tooling     │  assistants  │
│  content     │  Programmatic│  AIOps       │  + agents    │
│              │  LLM tools   │  platforms   │              │
├──────────────┼──────────────┼──────────────┼──────────────┤
│  Web UI      │  API         │  EDA         │  MCP         │
│              │              │              │              │
│  Human in    │  Reason      │  Human in    │  Reason      │
│  loop        │  Act         │  loop        │  Act         │
│              │  Verify      │  Observe     │  Verify      │
│              │              │  Act         │              │
└──────┬───────┴──────┬───────┴──────┬───────┴──────┬───────┘
       │              │              │              │
       └──────────────┴──────────────┴──────────────┘
                              │
              Red Hat Ansible Automation Platform
              Trusted execution across IT infrastructure

1. GenAI-Developed Automation Content (Web UI)

Interface: Web UI Oversight: Human in the loop

The Ansible Lightspeed intelligent assistant in the AAP web interface. Operators use natural language to generate automation content, review it, and approve execution.

Use cases:

  • Generate playbooks from natural language descriptions
  • Troubleshoot failed jobs with AI assistance
  • Platform administration queries

2. Custom AI Agents (API)

Interface: Programmatic API Pattern: Reason → Act → Verify

Custom AI agents and LLM tools interact with AAP programmatically. The agent reasons about what automation to run, executes via the API, and verifies the outcome.

Use cases:

  • ChatOps bots that trigger automation
  • CI/CD pipeline AI decision-making
  • Custom LLM agents with AAP as the execution layer
# Example: AI agent calling AAP API
import requests

response = requests.post(
    "https://aap.example.com/api/v2/job_templates/42/launch/",
    json={"extra_vars": {"target_host": "web-01"}},
    headers={"Authorization": f"Bearer {token}"}
)

3. Observability Tooling / AIOps (EDA)

Interface: Event-Driven Ansible Pattern: Human in the loop → Observe → Act

AIOps platforms (IBM Instana, ServiceNow, Splunk) send events to EDA. The system observes conditions, optionally involves a human for approval, then acts.

Use cases:

  • Auto-remediation from monitoring alerts
  • ServiceNow incident → automated response
  • Splunk ITSI threshold → corrective playbook
# EDA rulebook for AIOps
- name: Auto-remediate high CPU
  hosts: all
  sources:
    - ansible.eda.webhook:
        host: 0.0.0.0
        port: 5000
  rules:
    - name: CPU alert from monitoring
      condition: event.payload.alert_type == "high_cpu"
      action:
        run_job_template:
          name: "Remediate High CPU"
          organization: "IT Operations"

4. MCP-Native Assistants + Agents (MCP)

Interface: Model Context Protocol Pattern: Reason → Act → Verify

AI coding assistants (Claude Code, Cursor, Copilot, Gemini CLI, Windsurf, IBM Bob) connect to AAP via MCP servers. The assistant reasons about what to build, uses Ansible dev tools (scaffold, lint, test), and verifies the result.

Use cases:

  • AI-assisted playbook development in any IDE
  • Automated content scaffolding and testing
  • Multi-tool AI workflows with Ansible as execution backend

Trust Model

AAP acts as the trusted execution layer — regardless of which entry point triggers automation, the execution happens within AAP's governance framework:

GuaranteeDescription
RBAC enforcementEvery action respects role-based access controls
Audit trailAll executions are logged with who/what/when
Credential isolationSecrets never leave the platform
Approval workflowsHuman approval gates when configured
Execution environmentsConsistent, isolated runtime containers

Choosing the Right Entry Point

ScenarioEntry PointWhy
Operator building playbooksWeb UI (GenAI)Interactive, human-reviewed
CI/CD automation decisionsAPIProgrammatic, pipeline-integrated
Monitoring alert responseEDAEvent-driven, real-time
Developer writing Ansible codeMCPIDE-native, AI-assisted
ServiceNow ticket remediationEDAEvent → automation mapping
Custom chatbotAPIFlexible, any LLM framework

FAQ

Can I use multiple entry points simultaneously?

Yes. A typical enterprise uses all four: operators in the Web UI, CI/CD via API, monitoring via EDA, and developers via MCP — all executing through the same AAP instance with unified RBAC and audit.

Is "human in the loop" required?

It depends on the entry point and configuration. Web UI and EDA support human approval gates. API and MCP can operate autonomously but can be configured with approval workflows in AAP.

What AIOps platforms are supported with EDA?

AAP provides solution guides for IBM Instana, ServiceNow, and Splunk. Any platform that can send webhooks or events can integrate with EDA.

How does this relate to the MCP server?

The MCP entry point uses the Ansible Dev Tools MCP server (VS Code extension) for development workflows, and the AAP MCP server for platform operations. Both are part of the same architecture.

See also: Ansible Solution Guides: AIOps Partner Walkthroughs for Splunk, ServiceNow, Instana, and EDB

Category: events

Browse all Ansible tutorials · AnsiblePilot Home