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.
Run your playbooks from schedules and events, with retries, per-host results and approvals, in one flow with Terraform, NetBox and ServiceNow.
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.
Triggers, per-host results, approvals and a full audit trail. Your playbooks, roles, inventory and Vault stay where they are.
Cron, webhooks, S3 files, Kafka messages or database changes start your playbook, with the payload passed in as extra vars.
A nightly check-mode run sends only the hosts that drifted to Slack.
Built from Terraform, NetBox or vCenter when the flow starts. No stale inventory files.
Loop over every host's result and branch on changed, failed or any fact.
One batch at a time, with a health check before the next batch starts.
Open a past run and rerun the failing host's step with the same inventory and vars.
Patterns infrastructure teams run in production today. Each one shows the flow end to end, with the real plugin classes in play.
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 + --diff reports what would change without touching the host.
The Kestra Ansible callback writes per-host JSON the flow can iterate with ForEach.
Keeps Slack quiet on clean nights, surfaces only the hosts that drifted.
Every nightly audit is timestamped, attributed, and replayable from the execution UI.
Published as the ansible-config-drift blueprint in the Kestra catalog.
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: 1, serial: 10%, or a mix. Ansible enforces the batching, Kestra runs the verify task per batch.
core.http.Request with a retry policy decides whether the wave continues.
The flow exits before the next batch, the unpatched hosts stay on the old version.
Each batch has its own log line in the execution, with the host list and the probe result.
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.
Fire a playbook from Splunk, PagerDuty, ServiceNow, or any HTTP source. No glue service required.
The host name from trigger.body becomes a one-line inventory.ini, scoped to the affected host only.
Push the playbook's diagnostic output back into the ServiceNow ticket as a work note.
Re-run the playbook against the original target with one click from the execution view.
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.
The inventory comes from the tool that actually knows the hosts: Terraform state, NetBox DCIM, or a cloud API.
Inline inputFiles writes the inventory from outputs.fetch_inventory at the start of the playbook task.
Every run sees the current state, not yesterday's snapshot.
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.
The flow reads devices by site and role at run time.
The check-mode output is attached to the approval step.
A failed check triggers the rollback playbook before anything else changes.
ServiceNow is updated with what changed, who approved and how it ended.
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.
| Capability | | GitHub Actions | | |
|---|---|---|---|---|
| Check-mode drift detection with per-host alerting | Native, Kestra Ansible callback parses changed=true per host | Survey-driven runs, no native drift loop | Possible via shell + stdout parsing | Possible 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 plugin | serial works, verify is a custom step | Manual 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 inventory | Resource model plugin |
| Per-host result parsing via callback | Kestra Ansible callback, structured outputs iterable in YAML | AAP run history, harder to chain downstream | stdout parsing in shell | Job log parsing |
| Wave gating between dev / staging / prod | Native Pause + resume, named reviewer logged | Approval nodes in workflow templates | Environment approvals (deploy only) | Pause-on-input step |
| Event triggers (webhook, S3, Kafka, file) | Native, cross-source | EDA controller add-on | Webhook events on the repo | Webhook only |
| Ansible Vault decryption from secrets backend | Vault file mounted from secrets at run time | Built-in credential store | Secrets in env, manual mount | Key Storage Service |
| Chain Ansible with Terraform / NetBox / ServiceNow / ArgoCD | Native plugin tasks, outputs flow forward | Possible via collections | Possible via actions and glue | Job steps, manual wiring |
| Air-gapped / private network deploy | Self-hosted by default | Self-hosted (Red Hat subscription) | Self-hosted runners | Self-hosted |
| Orchestrate beyond Ansible | 2,600+ plugins, cross-stack | Ansible-centric | Possible, action-dependent | Possible, 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-on | Possible via expressions on step outputs | Job step conditions |
Side-by-side breakdown across event-driven runs, Ansible callback parsing, dynamic inventory, wave gating, and cross-tool chaining.
Find answers to your questions right here, and don't hesitate to Contact Us if you couldn't find what you're looking for.
Automate infrastructure with Kestra, Ansible and Terraform
The AnsibleCLI task end to end, with a Terraform handoff for a full provision-and-configure flow.
Automate infrastructure workflows in Kestra
How Kestra orchestrates Docker, Terraform, OpenTofu, Terragrunt, Ansible, and cloud CLIs in one declarative flow.
Top alternatives to Ansible for modern DevOps
Where Ansible fits among Puppet, Chef, Salt, Terraform, and Kestra, and when each one is the right tool.
Ansible plugin reference
Every Ansible CLI task and parameter, with copy-ready YAML examples.
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.