Execute governed job launches with check mode, approval gates, phased rollout, and rollback. Use when: - After execution-risk-analyzer has classified the execution risk - "Launch with check mode first", "Run the dry run" - "Execute the job" (after risk analysis) - "Rollback the failed job" NOT for: risk analysis (use execution-risk-analyzer first) or troubleshooting (use job-failure-analyzer).
87%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Required MCP Servers:
aap-mcp-job-management - Job launch, monitoring, events, relaunchVerification: Run the aap-mcp-validator skill with aap-mcp-job-management before proceeding.
IMPORTANT: This skill assumes the execution-risk-analyzer skill has already been executed and its risk assessment is available. Do NOT launch jobs without prior risk analysis for CRITICAL or HIGH risk targets.
Use this skill when:
execution-risk-analyzer has completed risk assessmentDo NOT use when:
execution-risk-analyzer first)job-failure-analyzer skill)governance-readiness-assessor skill)CRITICAL: Document consultation MUST happen BEFORE any MCP tool invocations.
Document Consultation (REQUIRED - Execute FIRST):
Before launching, incorporate the operational signals from the execution-risk-analyzer skill's report. The launcher adapts its behavior based on what was discovered:
2a. If risk analyzer flagged recent failures:
forensic-troubleshooter skill2b. If risk analyzer flagged check mode not overridable (ask_job_type_on_launch: false):
2c. If risk analyzer flagged shell/command modules:
2d. If risk analyzer flagged no notifications:
2e. If risk analyzer flagged standalone template (no workflow):
MCP Tool: job_templates_launch_create (from aap-mcp-job-management)
Parameters:
id: "<template_id>"requestBody:
job_type: "check"diff_mode: trueextra_vars: (from user/template, if any)limit: (if scoping to specific hosts)Per Red Hat's Job Templates documentation (Ch. 9): The job_type field supports "check" mode for dry-run execution, and diff_mode shows what would change.
If check mode not overridable (from Step 2b): Skip directly to full execution with elevated human-in-the-loop controls.
Ask user for confirmation, then launch directly with job_type: "run".
Launch with job_type: "run" directly (user has already been informed by risk analyzer).
Poll job status until completion:
MCP Tool: jobs_retrieve (from aap-mcp-job-management)
Parameters:
id: "<job_id>"Poll every few seconds. Status values: pending, waiting, running, successful, failed, error, canceled.
After check mode completes, retrieve results:
MCP Tool: jobs_job_host_summaries_list (from aap-mcp-job-management)
Parameters:
id: "<check_mode_job_id>"MCP Tool: jobs_job_events_list (from aap-mcp-job-management)
Parameters:
id: "<check_mode_job_id>"page_size: 100Interpretation (per execution-governance.md):
| Host Summary | Meaning | Action |
|---|---|---|
failures > 0 | Tasks would fail | STOP -- report failures, do NOT proceed |
dark > 0 | Hosts unreachable | STOP -- connectivity issue |
changed > 0, failures = 0 | Changes would be applied successfully | Present findings, ask for approval |
ok > 0, changed = 0 | Already in desired state | Report: "No changes needed" |
Shell/command module warning (adapted based on risk analyzer findings):
Output to user:
## Check Mode Results — Job #[job_id]
**Status**: [successful/failed]
**Dry-Run Coverage**: [Y] of [Z] tasks validated ([percentage]%) [only if module data available from risk analyzer]
### Host Summary
| Host | OK | Changed | Failed | Unreachable | Skipped |
|---|---|---|---|---|---|
| [host] | [ok] | [changed] | [failures] | [dark] | [skipped] |
### Check Mode Findings
- [X] tasks would make changes
- [Y] tasks would fail
- [Z] tasks were skipped (shell/command — NOT validated)
### Operational Context [from risk analyzer signals]
- Job History: [last run status — clear/failed/first run]
- Notifications: [configured/not configured — silent failures if not]
- Workflow: [wrapped/standalone]
### Recommendation
[Based on results AND operational context: proceed / stop / investigate]
⚠️ [Specific or generic check mode warning based on available data]
**Proceed with full execution?** (yes/no)MCP Tool: job_templates_launch_create (from aap-mcp-job-management)
Parameters:
id: "<template_id>"requestBody:
job_type: "run"extra_vars: (same as check mode)Per execution-governance.md, CRITICAL risk executions use phased rollout:
Phase 1 - Canary:
{
"id": "<template_id>",
"requestBody": {
"job_type": "run",
"limit": "<canary_host>"
}
}Verify canary success via jobs_job_host_summaries_list. If failures = 0, proceed.
Phase 2 - Expanded (25%):
{
"id": "<template_id>",
"requestBody": {
"job_type": "run",
"limit": "<group>[0:25%]"
}
}Verify. If failures = 0, proceed.
Phase 3 - Full Rollout:
{
"id": "<template_id>",
"requestBody": {
"job_type": "run"
}
}Health gate between phases: Check jobs_job_host_summaries_list for failures = 0 before proceeding to next phase. If ANY failures, STOP and report.
MCP Tool: jobs_job_host_summaries_list (from aap-mcp-job-management)
Parameters:
id: "<final_job_id>"Report only hosts with changed > 0 or failures > 0:
## Execution Summary — Job #[job_id]
**Status**: [successful/failed]
**Elapsed**: [time]
### Changed Hosts
| Host | Changed | Failed |
|---|---|---|
| [host] | [changed] | [failures] |
### Result
[X] hosts changed, [Y] hosts failed, [Z] hosts unchanged.
### Proactive Recommendations [based on risk analyzer signals]
[If no notifications were flagged]: "Per Red Hat's Ch. 25, this template has no failure notifications. Now that the execution succeeded, consider adding notifications for future runs."
[If standalone template flagged]: "This template ran outside a workflow. For ongoing production use, consider wrapping it in a workflow with approval nodes."If the job fails, offer rollback options per execution-governance.md:
Option 1 - Relaunch on failed hosts:
MCP Tool: jobs_relaunch_create (from aap-mcp-job-management)
Parameters:
id: "<failed_job_id>"requestBody:
hosts: "failed"credential_passwords: {}Option 2 - Rollback playbook: Launch a different template (if a rollback template exists).
Option 3 - Revert to previous job: Relaunch the last successful job.
aap-mcp-job-management - All job operationsjob_templates_launch_create (from job-management) - Launch jobsjobs_retrieve (from job-management) - Monitor progressjobs_job_events_list (from job-management) - Event detailsjobs_job_host_summaries_list (from job-management) - Host summariesjobs_relaunch_create (from job-management) - Rollback/relaunchexecution-risk-analyzer - MUST run before this skillaap-mcp-validator - Prerequisite validationexecution-summary - Audit trail after launchThis skill requires explicit user confirmation at the following steps:
Before Full Execution (CRITICAL/HIGH risk)
Between Rollout Phases (CRITICAL risk)
Before Rollback
Never execute without approval for CRITICAL or HIGH risk targets.
User: "Execute the security patch on production" (after risk analyzer identified CRITICAL risk with signals)
Agent:
job_type: "check", diff_mode: trueRHEcosystemAppEng/agentic-plugins
df1d156
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.