Active
TMM Created
Check Mode Change Control
See the impact before you commit
Description
A change process creates a change request in ServiceNow and fires the automation orchestrator webhook. AAP runs the multi-domain change in check mode - nothing is applied, and the playbook publishes per-domain impact via set_stats. An AI impact analyst scans the check-mode output and writes a detailed work note, pushed to the change request through the Update SNOW Change job template. After the human approval step, the approved path runs the same playbook for real, an AI close-out analyst scans what actually happened against the check-mode prediction, and the results are pushed to ServiceNow, which also closes the change request. The rejected path pushes a work note recording the operator's rejection - no system touched.
Why it matters
- Check mode makes the whole multi-domain change run as a dry run first - every task reports what it would change, and nothing is modified.
- The AI impact analyst reads the real dry-run artifacts published by the playbook, so the report shows actual per-domain impact, not a guess.
- The approval decision happens where the context is - the impact report is attached to the change request before the approval step fires.
- One playbook, two job templates - check and run - keeps the dry run and the real run byte-for-byte identical.
- All ServiceNow writes go through job templates, the same pattern the Ticket Enrichment demo uses - AI agents never touch the ITSM directly.
AO building blocks
Automation orchestrator step types this workflow uses on the canvas. See all building blocks
-
Triggers
Webhook trigger
Starts a workflow when an external system sends an authenticated HTTP POST to a generated endpoint URL, with the request body available as trigger input for downstream steps. Commonly used to integrate CI/CD pipelines, monitoring tools, or Splunk alerts - each workflow gets its own unique URL path.
-
AAP execution
AAP job template
Launches a single Ansible Automation Platform job template from the workflow, polling until the job completes and exposing results to downstream steps. The standard bridge between automation orchestrator reasoning and AAP execution - one playbook with resolved inventory, credentials, limits, and extra vars.
-
AI & integrations
Task agent
Adds LLM reasoning to a workflow - the step receives a natural-language prompt, can call enabled tools, and returns structured output that downstream steps reference through expressions. Use it for unstructured data (logs, tickets, alerts) to summarize, classify, triage, and recommend remediation actions; pair with an approval step for human oversight.
-
Approval
Approval step
Pauses the branch and creates an approval request; an approver reviews context, approves or rejects, and the workflow continues on the matching path. Place approvals before destructive or production changes, with configurable approver users/groups, a decision window, and fallback behavior if no one responds in time.
Interactive Experience
Workflow
flowchart LR
A@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/glossary/webhook-trigger.svg", label: "Change Process Initiation", pos: "b", h: 96, constraint: "on" } --> B@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Run Change in Check Mode", pos: "b", h: 96, constraint: "on" }
B --> C@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/task-agent.png", label: "AI Impact Analyst", pos: "b", h: 96, constraint: "on" }
C --> D@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Push Impact Work Note", pos: "b", h: 96, constraint: "on" }
D --> E@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/approval-node.png", label: "Approve Change Execution", pos: "b", h: 96, constraint: "on" }
E -->|Approved| F@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Run Change for Real", pos: "b", h: 96, constraint: "on" }
F --> G@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/task-agent.png", label: "AI Close-Out Analyst", pos: "b", h: 96, constraint: "on" }
G --> H@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Push Close-Out and Close Change", pos: "b", h: 96, constraint: "on" }
E -->|Rejected| I@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Push Rejection Work Note", pos: "b", h: 96, constraint: "on" }
classDef noBorder fill:transparent,stroke:transparent
class A,B,C,D,E,F,G,H,I noBorder
Switch routing
| Decision | Condition | Action |
|---|---|---|
approved |
Reviewer approves after reading the impact report | Run the multi-domain change for real → AI scans the result → push close-out work note → close change request (Closed) |
rejected |
Reviewer rejects after reading the impact report | Push a work note recording the operator's rejection - no system touched |
Playbooks
| Playbook | What it does | Runs on |
|---|---|---|
multi_domain_change.yml
|
Runs the multi-domain change (package, sysctl config, service) and publishes per-domain impact via set_stats. Registered as both the Check and Apply job templates. | All in-scope hosts (web, db, loadbalancer) |
update_snow_change.yml
|
Looks up the change request sys_id and PATCHes it with the work note passed by the workflow; sets state 3 (Closed) on the approved path. | localhost (ServiceNow REST) |
simulate_change_process.yml
|
Creates the change request in ServiceNow and fires the automation orchestrator webhook to initiate the check-mode change control workflow. | localhost (ServiceNow + automation orchestrator APIs) |
Demo ideas
- {"Run the Simulate - Change Process Initiation job with scenario_list"=>"standard and watch the check-mode impact report land on the change request"}
- Approve at the gate and compare the check-mode and real-run job outputs in AAP
- Read the close-out work note - prediction versus reality, scanned by the AI close-out analyst
- {"Run scenario_list"=>"high_risk to show a higher-risk impact report, then manually reject at the approval gate (AI recommendation does not auto-reject)"}
- Inspect a host after a check-mode run to prove nothing changed, then again after the approved apply