Add state, gates, and visibility to Ansible.

Run your playbooks from schedules and events, with retries, per-host results and approvals, in one flow with Terraform, NetBox and ServiceNow.

Blueprints for Ansible orchestration.

Keep your playbooks and replace the controller. Kestra listens to cron, webhooks and alerts, handles drift detection and rolling waves with per-host verification, halts a wave at the first failed health probe, and chains ansible-playbook with Terraform, NetBox and ServiceNow. Replacing AWX or Ansible Automation Platform? See Kestra vs Ansible Automation Platform.

Nightly check-mode audit with the Kestra Ansible callback Open blueprint
Rolling OS patch wave with serial and per-batch health probe Open blueprint
Build inventory from NetBox at run time, then play against it Open blueprint
Browse all 36 Ansible blueprints

What Kestra adds around your playbooks.

Triggers, per-host results, approvals and a full audit trail. Your playbooks, roles, inventory and Vault stay where they are.

Schedules and events

Cron, webhooks, S3 files, Kafka messages or database changes start your playbook, with the payload passed in as extra vars.

Drift detection

A nightly check-mode run sends only the hosts that drifted to Slack.

Inventory at run time

Built from Terraform, NetBox or vCenter when the flow starts. No stale inventory files.

Per-host results

Loop over every host's result and branch on changed, failed or any fact.

Rolling restarts

One batch at a time, with a health check before the next batch starts.

Replay any host

Open a past run and rerun the failing host's step with the same inventory and vars.

How platform and network teams use Ansible and Kestra

Patterns infrastructure teams run in production today. Each one shows the flow end to end, with the real plugin classes in play.

Drift detection

Nightly check-mode audit, alert only on drift

Run the playbook with --check --diff against the fleet on a nightly schedule. The Kestra Ansible callback emits structured per-host output. A ForEach loops through hosts and posts a Slack alert only when a host comes back with changed: true. Clean runs stay quiet, the play recap stays attached to the execution for audit.

Check mode runs are non-destructive

--check + --diff reports what would change without touching the host.

Callback emits structured outputs

The Kestra Ansible callback writes per-host JSON the flow can iterate with ForEach.

Alert only on changed=true

Keeps Slack quiet on clean nights, surfaces only the hosts that drifted.

Full play recap stored per run

Every nightly audit is timestamped, attributed, and replayable from the execution UI.

What you get

Published as the ansible-config-drift blueprint in the Kestra catalog.

Schedule icon
cron trigger
nightly
AnsibleCLI icon
ansible-playbook --check
diff mode
ForEach icon
ForEach host
per-host change?
SlackIncomingWebhook icon
alert
only on drift
Rolling wave

Rolling OS patch wave with serial + HTTP health probe between batches

ansible-playbook with serial: 1 patches one host at a time. Between batches, a Kestra core.http.Request task probes the application health endpoint. If the probe fails, the flow halts before the next batch and pages on-call. No half-broken fleet, no manual stop-the-pipeline.

serial picks the batch size

serial: 1, serial: 10%, or a mix. Ansible enforces the batching, Kestra runs the verify task per batch.

HTTP probe gates the next batch

core.http.Request with a retry policy decides whether the wave continues.

Halt on failure preserves the rest of the fleet

The flow exits before the next batch, the unpatched hosts stay on the old version.

Per-batch execution log

Each batch has its own log line in the execution, with the host list and the probe result.

Schedule icon
patch window
scheduled
AnsibleCLI icon
ansible-playbook serial: 1
one host at a time
ForEach icon
ForEach host
verify between batches
Request icon
health probe
halt on fail
SlackIncomingWebhook icon
notify
Slack on halt
Event-driven

Event-triggered remediation from monitoring alerts

A Splunk or CloudWatch alert fires on high CPU or a failed health check. The webhook hits Kestra, Kestra runs the remediation playbook against the affected host (inline inventory built from the alert payload), updates the ServiceNow incident with the playbook output, and posts to Slack. Same flow, same audit trail, whether the alert fires once a week or a hundred times a day.

Webhook + API triggers

Fire a playbook from Splunk, PagerDuty, ServiceNow, or any HTTP source. No glue service required.

Inline inventory from alert payload

The host name from trigger.body becomes a one-line inventory.ini, scoped to the affected host only.

Incident enrichment

Push the playbook's diagnostic output back into the ServiceNow ticket as a work note.

Replay on the same host

Re-run the playbook against the original target with one click from the execution view.

Webhook icon
webhook
alert payload
AnsibleCLI icon
ansible-playbook
remediate host
Update icon
ServiceNow
update incident
SlackIncomingWebhook icon
notify
Slack
Dynamic inventory

Inventory from NetBox or Terraform output, then play against it

terraform output or a NetBox device query emits the inventory at the start of the flow. The next task templates it into inventory.ini (or hands it as a JSON dynamic inventory). The playbook runs against the freshly resolved hosts. No stale static inventory file, no manual sync between source of truth and Ansible.

Single source of truth

The inventory comes from the tool that actually knows the hosts: Terraform state, NetBox DCIM, or a cloud API.

Templated into inventory.ini per run

Inline inputFiles writes the inventory from outputs.fetch_inventory at the start of the playbook task.

Refresh per execution

Every run sees the current state, not yesterday's snapshot.

Schedule icon
trigger
schedule or webhook
TerraformCLI icon
fetch inventory
Terraform / NetBox
AnsibleCLI icon
ansible-playbook
fresh inventory
ForEach icon
ForEach host
per-host result
Update icon
ServiceNow
CMDB reconcile
Network automation

Network change with a dry run, an approval and a rollback

NetBox says which devices a change targets. The playbook runs in check mode and the diff goes to the approver. Once approved, the change runs, a post-check confirms the devices are healthy, and a failed check restores the last good configuration. The change record in ServiceNow gets the diff, the approver and the result.

Source of truth stays in NetBox

The flow reads devices by site and role at run time.

The approver sees the diff

The check-mode output is attached to the approval step.

Post-check decides

A failed check triggers the rollback playbook before anything else changes.

One record per change

ServiceNow is updated with what changed, who approved and how it ended.

List icon
NetBox
devices
AnsibleCLI icon
ansible-playbook --check
diff mode
Pause icon
Pause
approval
AnsibleCLI icon
ansible-playbook
AnsibleCLI icon
post-check
AnsibleCLI icon
rollback
on failure
Update icon
ServiceNow
change record
The orchestration of Ansible is very poor compared to what we can do with Kestra. I doubt that we can only use Terraform and Ansible to do all our complex orchestration.
Crédit Agricole

Kestra vs Ansible orchestration alternatives

Capability
Ansible Automation Platform
GitHub Actions
Rundeck
Check-mode drift detection with per-host alerting
Native, Kestra Ansible callback parses changed=true per host
Survey-driven runs, no native drift loopPossible via shell + stdout parsingPossible via job steps, manual parse
Rolling restart with serial + per-batch health probe
core.http.Request between batches halts on failure
serial works, verify needs custom pluginserial works, verify is a custom stepManual orchestration
Dynamic inventory from Terraform, NetBox, vCenter, cloud APIs
Native plugin tasks emit inventory at run time
AAP inventory plugins (config-managed)Custom shell to build inventoryResource model plugin
Per-host result parsing via callback
Kestra Ansible callback, structured outputs iterable in YAML
AAP run history, harder to chain downstreamstdout parsing in shellJob log parsing
Wave gating between dev / staging / prod
Native Pause + resume, named reviewer logged
Approval nodes in workflow templatesEnvironment approvals (deploy only)Pause-on-input step
Event triggers (webhook, S3, Kafka, file)
Native, cross-source
EDA controller add-onWebhook events on the repoWebhook only
Ansible Vault decryption from secrets backend
Vault file mounted from secrets at run time
Built-in credential storeSecrets in env, manual mountKey Storage Service
Chain Ansible with Terraform / NetBox / ServiceNow / ArgoCD
Native plugin tasks, outputs flow forward
Possible via collectionsPossible via actions and glueJob steps, manual wiring
Air-gapped / private network deploy
Self-hosted by default
Self-hosted (Red Hat subscription)Self-hosted runnersSelf-hosted
Orchestrate beyond Ansible
2,600+ plugins, cross-stack
Ansible-centricPossible, action-dependentPossible, plugin-dependent
Branch on a job's result
Native, outputs flow to the next task
Success, failure or always. Conditions need the paid orchestrator add-onPossible via expressions on step outputsJob step conditions
Deeper comparison Kestra vs Ansible Automation Platform (Tower / AWX)

Side-by-side breakdown across event-driven runs, Ansible callback parsing, dynamic inventory, wave gating, and cross-tool chaining.

See the full comparison

Ansible & Kestra: common questions

Find answers to your questions right here, and don't hesitate to Contact Us if you couldn't find what you're looking for.

See How

Ready to orchestrate your Ansible playbooks?

Drive check-mode drift detection, gate patch waves, build inventory from Terraform or NetBox, and parse per-host results with the Kestra Ansible callback. Open source, self-hosted, event-driven.