Red Hat

Why your Ansible Automation Platform instance needs its own disaster recovery plan

At an Ansible Automates event, we asked a room of IT leaders a simple question: Does your automation platform have its own high-availability and disaster recovery plan?

Only a few hands went up.

Red Hat and EDB teamed up to fix that by giving Red Hat Ansible Automation Platform a hardened database backend—powered by EDB Postgres® AI—and a verified recovery collection and solution guide for real-world outages.

The platform behind your recovery needs protection, too

Automation supports security patching, configuration management, deployments, and incident response. As more operational work depends on it, its availability becomes a business concern.

Ansible Automation Platform relies on databases such as PostgreSQL to maintain essential platform state, including job definitions, inventory, credential records, and execution history. A database outage can prevent teams from launching or managing the automation they need during an incident.

The database deserves the same recovery planning as the workloads the platform manages. That starts with 2 questions:

  • How long can the business tolerate automation being unavailable?
  • How much recent platform data can it afford to lose?

Those answers establish the recovery time objective (RTO) and recovery point objective (RPO). They also help determine the architecture, operational procedures, and testing the business needs.

Disaster recovery vs. high availability: Solving different problems

While local high availability keeps services running through a dead node, disaster recovery still allows you to provision and make changes when an entire data center goes dark. Automation requires both.

Red Hat and EDB have published guidance for using EDB Postgres AI with Ansible Automation Platform. This reference architecture guide provides a starting point for reviewing the database architecture and associated resources.

In this example, the architecture pairs Ansible Automation Platform 2.6’s containerized enterprise topology with a 3-node EDB Postgres AI Database cluster: 1 primary and 2 standbys. EDB Failover Manager (EFM) coordinates database failover and manages a virtual IP address, providing a stable database endpoint.

Across data centers, asynchronous replication supports recovery at a 2nd site. That introduces a different tradeoff: Transactions that haven’t reached the recovery site at the time of failure may be lost. Physical distance alone doesn’t determine the recovery point; replication mode and actual lag matter.

Figure 1: Active vs. passive disaster recovery.

Scenario

Reported recovery time*

Data protection considerations

Database failover within 1 data center

Under 60 seconds

Synchronous replication can protect acknowledged transactions, subject to configuration and failure conditions.

Recovery at a 2nd data center

Under 5 minutes

Asynchronous replication can leave a data gap determined by replication lag at failure.

*Lab-validated per the EDB and Red Hat reference architecture. Actual results vary by application, workload, and environment.

Automate recovery across data centers

A promoted database is only 1 step in restoring automation. Teams also need to confirm that platform services are healthy, users can connect, and operational workflows can resume.

In the fully automated active-passive architecture, the primary site serves production traffic while a 2nd site maintains a replicated database and a prepared Ansible Automation Platform environment. Platform services at the recovery site remain stopped until recovery is triggered.

The recovery sequence coordinates the database, application, and traffic routing:

  1. Promote the recovery database: EDB Failover Manager detects the configured failure condition and promotes the standby database at the 2nd site, subject to the deployment’s promotion safeguards.
  2. Start the automation platform: A configured post-promotion script starts Ansible Automation Platform services at the recovery site after database promotion.
  3. Redirect traffic: The global load balancer detects healthy platform services and directs user and application programming interface (API) traffic to the recovery site.

This sequence reduces the manual coordination required to restore the service. The published joint reference architecture describes this approach, including recovery tasks involving user sessions, interrupted jobs, and Event-Driven Ansible activations.

Automated infrastructure recovery doesn’t mean every interrupted workflow resumes automatically. Admins still need to verify service health, review incomplete work, and follow the relevant restart or retry procedures.

A useful recovery test follows the entire path. Can an admin sign in, launch a representative job, access the required credentials, and confirm the result? Does the team know which interrupted work is safe to retry?

Keep database configuration consistent

Resilience also depends on repeatable day-to-day operations. If database users, schema privileges, or connection rules drift between sites, a standby database might promote successfully but reject incoming automation controller requests.

The Red Hat Ansbile Certified edb.epas_postgresql Collection helps teams manage those database internals through automation. Our technical guide discusses the collection and how to use it to prevent configuration drift.

The collection manages database internals. Separate provisioning and failover tooling establishes the cluster and its recovery infrastructure.

Using Ansible content, teams can codify database state, audit environments for drift on a schedule, and automatically remediate unauthorized schema or permission changes.

Put automated recovery into practice

For IT leaders, the goal is a recovery process that meets business needs with clear ownership. For platform teams, that means deploying and exercising the complete automated sequence before relying on it in production.

  1. Define success: Set recovery objectives and identify the representative workflows that must work after recovery.
  2. Configure the complete recovery path: Prepare replication, failure detection, promotion safeguards, the post-promotion script, and load-balancer health checks. Monitor replication lag and cluster health.
  3. Exercise failure and recovery: Test database failures, site outages, and connectivity loss. Measure user-facing recovery time, inspect interrupted work, and rehearse a controlled return to the primary site.

The goal is a recovery path with as few manual steps as possible: EDB Failover Manager monitors cluster health and promotes the standby when the configured failure conditions are met, and replication monitoring can alert your team if replication stalls. Your team still verifies service health and reviews interrupted work. 

For existing installations, confirm the supported migration path for the platform version and deployment model before changing the database architecture.

What's next?

In Ansible Automation Platform 2.7, automation orchestrator will let you link task, event, and AI content into a single pipeline with centralized audit logs that feed directly into your information technology service management (ITSM) and security tools. Existing collections, including edb.epas_postgresql, become workflow steps without a rewrite. And for teams standardizing on Kubernetes, we're actively working with the Red Hat OpenShift team on a similar joint validation using EDB Postgres AI for CloudNativePG™. Watch for that soon.

Take this back to your team

To see the complete configuration details, read the joint reference architecture and solution guide.

Ready to start testing? Register for a webinar on governing EDB Postgres AI at scale with Red Hat Ansible or explore the certified edb.epas_postgresql collection in Ansible automation hub today.