Red Hat’s GitOps pattern keeps Ansible automation running across cluster outages
A federated design separates shared platform configuration from workload dispatch so maintenance, migration and regional failure do not stop automation.
A new Red Hat engineering pattern treats Ansible Automation Platform as a federated service rather than a single central controller. The design keeps platform configuration in Git while dispatching jobs across separate automation clusters, giving platform teams a way to continue running pipelines and remediation when one controller is unavailable.
What the pattern changes
The architecture separates two jobs that are often coupled. Changes merged to the main branch trigger playbooks/configure_aap.yml, which applies common configuration across two gateways. Red Hat’s example uses ansible.controller modules to establish enterprise boundaries, machine SSH keys, inventory groups, synchronized workload repositories and job templates. Secrets are encrypted with Ansible Vault, while Git remains the declarative source of truth.
Workload execution follows a separate deploy-branch workflow. The playbooks/dispatch_round_robin.yml playbook can select a named target such as a datacenter or production environment, or use an auto setting to alternate jobs between cluster instances. The example uses a GitHub index for round-robin dispatch and notes that production environments would typically put dedicated infrastructure such as an F5 load balancer in that role.
That split matters because configuration consistency no longer depends on sending every job through one controller. GitHub Actions coordinates deployment, while the pattern can connect ServiceNow approvals to pipeline starts and stream Ansible Automation Platform events to Splunk.
Who should care
The immediate audience is platform teams whose CI/CD pipelines or automated remediation depend on Ansible Automation Platform. Red Hat describes three practical uses: continuing business-critical automation across geographic regions, diverting jobs during maintenance, and running different platform versions side by side during a phased migration.
The design complements Ansible Automation Platform high-availability and disaster-recovery architectures rather than replacing them. Its contribution is an operating model for distributing execution while keeping configuration reviewable and repeatable through GitOps.
What to try
Teams evaluating the pattern should first reproduce it in isolated test clusters using Red Hat’s linked proof-of-concept repository. The useful test is not merely whether both gateways accept the same configuration. Operators should also verify that explicit environment targeting works, that automatic dispatch behaves as expected during a simulated outage, and that change approvals and centralized logs remain intact when workloads move between clusters.
The result is a concrete blueprint for making enterprise automation less dependent on one control point. It also gives migration teams a controlled way to move workloads between Ansible Automation Platform versions without requiring an all-at-once cutover.
sources
- Federated multi-cluster Ansible Automation Platform with GitOpsdevelopers.redhat.com
comments · 0