Setting Up AAP Environment

The Installation That Taught Me Everything

My first AAP installation took three attempts over two days. The first attempt failed because I underestimated resource requirements. The second failed because I didn't understand the inventory file configuration. The third succeeded, but I had to rebuild it a week later because I skipped SSL certificate setup and backup configuration.

What I learned: AAP installation isn't difficult, but it requires careful planning and attention to detail. Skip steps, and you'll rebuild. Understand the components, and you'll have a production-ready environment in hours, not days.

This article is the guide I wish I had for that first installation - everything you need to know to set up AAP correctly the first time.

What You'll Learn

  • System requirements and prerequisite planning

  • Installation methods: containerized vs RPM-based

  • Configuring the inventory file for different topologies

  • SSL/TLS certificate setup for production

  • Authentication sources (LDAP, SAML, OAuth)

  • Post-installation configuration and verification

  • Backup and recovery setup

  • Common installation pitfalls and solutions

Prerequisites and Planning

System Requirements

Before installing AAP, ensure your infrastructure meets these minimum requirements:

For Single-Node POC/Development

For Production HA Deployment

Real-world insight: We started with 32 GB RAM per controller node and hit memory pressure during peak job execution. Upgrading to 64 GB resolved all performance issues.

Subscription and Licensing

Before installation, obtain your AAP subscription:

Getting a Trial Subscription

Understanding the Manifest

The manifest file contains:

  • Number of managed node licenses (e.g., 100, 250, 500 nodes)

  • Subscription expiration date

  • Entitled products and versions

  • Support level

Important: Keep the manifest file safe - you'll upload it during AAP setup.

Network Planning

Plan your network configuration carefully:

Installation Methods

AAP 2.4+ offers two installation approaches:

Advantages:

  • Easier upgrades and updates

  • Better resource isolation

  • Consistent across environments

  • Faster deployments

Requirements:

  • podman or docker installed

  • Container registry access

Method 2: RPM-Based Installation (Traditional)

Advantages:

  • Traditional Linux package management

  • Familiar to sysadmins

  • No container overhead

Requirements:

  • RHEL subscription

  • Access to Red Hat repositories

My recommendation: Use containerized for new deployments. It's the future direction for AAP.

Step-by-Step Installation

Step 1: Prepare the System

Step 2: Download AAP Installer

Step 3: Configure the Inventory File

This is the most critical step. The inventory file defines your AAP topology.

Single-Node Configuration (POC/Development)

Real-world note: This works for POC, but don't use for production. No HA, single point of failure.

Production HA Configuration

Real-world configuration: This is similar to our production setup, with external managed PostgreSQL (AWS RDS) and Let's Encrypt certificates.

Step 4: SSL/TLS Certificate Setup

Never use HTTP for AAP in production. Always configure SSL/TLS.

Option 1: Self-Signed Certificates (Development Only)

Option 3: Corporate CA Certificate

Real-world practice: We use Let's Encrypt with automated renewal for external-facing controllers, and corporate CA for internal deployments.

Step 5: Run the Installation

Common installation output:

Step 6: Post-Installation Verification

Initial Configuration

Step 1: First Login and Subscription Upload

Screenshot workflow:

  1. Login → Subscription page appears

  2. Click "Browse" → Select manifest file

  3. Click "Upload" → License information displayed

  4. Verify node count matches subscription

Step 2: Configure Authentication

AAP supports multiple authentication backends.

LDAP/Active Directory Integration

Real-world setup: Our LDAP integration allows all employees to login, but RBAC within AAP controls who can actually do anything.

SAML 2.0 Integration

Step 3: Create Organizations and Teams

Step 4: Configure Project and First Inventory

Backup and Recovery Configuration

Critical: Configure backups BEFORE you start using AAP in production.

What to Backup

Automated Database Backup Script

Real-world practice: We backup to local disk and replicate to S3 with versioning enabled. Database backups are also handled by AWS RDS automated backups.

Disaster Recovery Test

Don't wait for a disaster to test recovery!

Real-world lesson: We test recovery quarterly. The first test revealed our SECRET_KEY wasn't being backed up - credentials would have been unrecoverable!

Common Installation Issues and Solutions

Issue 1: Installation Fails - Insufficient Resources

Error:

Solution:

Issue 2: Database Connection Fails

Error:

Solution:

Issue 3: SSL Certificate Errors

Error: Browser shows "Not Secure" or certificate warnings

Solution:

Issue 4: Execution Capacity Shows Zero

Error: No jobs execute, capacity = 0

Solution:

Performance Tuning Post-Install

PostgreSQL Tuning

Redis Optimization

Key Takeaways

Plan before installing - sizing, network, certificates ✅ Use containerized installation for new deployments ✅ Configure SSL/TLS from the start ✅ Set up authentication early (LDAP/SAML) ✅ Configure backups immediately - test restoration ✅ Document your configuration - especially inventory file ✅ Test disaster recovery before you need it

What's Next

With AAP installed and configured, the next article dives into Automation Controller basics - creating organizations, teams, projects, inventories, credentials, and running your first job template.


Next Article: Automation Controller Basics →

Additional Resources


Part of the Ansible Automation Platform 101 Series

Last updated