Upgrade to Ansible Automation Platform 2.6
To upgrade your deployment of Ansible Automation Platform, review the planning requirements to ensure a successful upgrade. You can then download the desired version of the installation program, configure the inventory file to reflect your environment, and then run the installation program.
In Ansible Automation Platform 2.6, while the automation controller’s API remains for backward compatibility, new installations must use the platform gateway API for managing organizations, teams, and users. Using the legacy API will introduce a delay of up to 15 minutes before changes are synchronized to all components, including Event-Driven Ansible controller.
System requirements Copy linkLink copied!
Before you begin the upgrade process, review the following considerations to plan and prepare your Ansible Automation Platform deployment:
Ansible Automation Platform requirements Copy linkLink copied!
- Verify that you have a valid subscription before upgrading from a previous version of Ansible Automation Platform. Existing subscriptions are carried over during the upgrade process.
- Review Plan your upgrade to Ansible Automation Platform 2.6 to understand the upgrade requirements and scenarios, and Choose a deployment method and topology for the RPM topologies and infrastructure.
- Inspect all existing SAML authenticators in your automation controller environment before upgrading from Ansible Automation Platform 2.4 to 2.6. Encrypted private keys for SAML configurations are not supported in Ansible Automation Platform 2.6.
- Ensure that you are on Ansible Automation Platform 2.4 or 2.5 before upgrading to 2.6. You can only upgrade from Ansible Automation Platform 2.4 or 2.5 to 2.6.
- Upgrade to the latest version of Ansible Automation Platform 2.4 or 2.5 before upgrading to Red Hat Ansible Automation Platform 2.6.
Important - When upgrading from Ansible Automation Platform 2.4 to 2.6, the API endpoints for the automation controller, automation hub, and Event-Driven Ansible controller are all available for use. These APIs are being deprecated and will be disabled in an upcoming release. This grace period is to allow for migration to the new APIs put in place with the platform gateway.
- If you upgraded from Ansible Automation Platform 2.4 to 2.5, you must migrate your authentication methods and users before upgrading to 2.6 as that legacy authenticator functionality was removed.
- Back up your Ansible Automation Platform environment before upgrading in case any issues occur.
- Capture your inventory or instance group details before upgrading.
- Review the platform gateway requirements:
- Ansible Automation Platform 2.4 to 2.6 upgrades include the platform gateway. Ensure you review the 2.6 Network ports and protocols diagram for architectural changes.
- Platform gateway has a number of associated inventory file variables, some of which are required.
- When upgrading from Ansible Automation Platform 2.4 to 2.6, connections to the platform gateway URL might fail on the platform gateway UI if you are using the automation controller behind a load balancer. The following error message is displayed:
Error connecting to Controller APITo resolve this issue, for each automation controller host, add the platform gateway URL as a trusted source in the
CSRF_TRUSTED_ORIGINsetting in the settings.py file for each automation controller host. You must then restart each automation controller host so that the URL changes are implemented.
- Review the centralized redis instance offered by Ansible Automation Platform for both standalone and clustered topologies.
- Ansible Automation Platform 2.6 offers a centralized Redis instance in both standalone and clustered topologies.
- 6 VMs are required for a Redis high availability (HA) compatible deployment. Redis can be colocated on each Ansible Automation Platform component VM except for automation controller, execution nodes, or the PostgreSQL database.
- External Redis is not supported for RPM-based deployments of Ansible Automation Platform.
- Limitation:
- Upgrade of Event-Driven Ansible 2.5 to 2.6 is supported, but upgrade from Event-Driven Ansible 2.4 to 2.6 is not supported. Database migrations between Event-Driven Ansible 2.4 and Event-Driven Ansible 2.6 are not compatible. If you are upgrading from Ansible Automation Platform 2.4 to 2.6 and you deployed Event-Driven Ansible, you must first remove the Event-Driven Ansible 2.4 database and then upgrade your platform to 2.6.
System requirements Copy linkLink copied!
| Type | Description | Notes |
|---|---|---|
| Subscription |
Valid Red Hat Ansible Automation Platform subscription |
|
| Operating system |
Red Hat Enterprise Linux 9.4 or later minor versions of Red Hat Enterprise Linux 9 |
Red Hat Ansible Automation Platform are also supported on OpenShift. |
| CPU architecture |
x86_64, AArch64, s390x (IBM Z), ppc64le (IBM Power) |
|
| Ansible-core |
Ansible-core version 2.16 or later |
Ansible Automation Platform uses the system-wide ansible-core package to install the platform, but uses ansible-core 2.16 for both its control plane and built-in execution environments. |
| Browser |
A currently supported version of Mozilla Firefox or Google Chrome. |
|
| Database |
|
|
Database requirements Copy linkLink copied!
- Ansible Automation Platform can work with two varieties of database:
- Database installed with Ansible Automation Platform - This database consists of a PostgreSQL installation done as part of an Ansible Automation Platform installation using PostgreSQL packages provided by Red Hat.
- Customer provided or configured database - This is an external database that is provided by the customer, whether on bare metal, virtual machine, container, or cloud hosted service. Ansible Automation Platform requires customer provided (external) database to have ICU support.
- PostgreSQL user passwords are hashed with SCRAM-SHA-256 secure hashing algorithm before storing in the database.
- Ensure that you back up your Ansible Automation Platform environment before upgrading in case any issues occur.
User privileges Copy linkLink copied!
- Ensure a dedicated non-root user is configured on the Red Hat Enterprise Linux host.
- This user requires sudo or other Ansible supported privilege escalation (sudo is recommended) to perform administrative tasks during the installation.
- This user is responsible for the installation of RPM Ansible Automation Platform.
- You can obtain root access either through the sudo command, or through privilege escalation. You can de-escalate privileges from root to users such as AWX, PostgreSQL, Event-Driven Ansible, or Pulp.
- An NTP client is configured on each node.
Back up your Ansible Automation Platform instance Copy linkLink copied!
Back up an Ansible Automation Platform instance by running the setup.sh script with the backup_dest flag. You can also enable the compression flags use_archive_compression and use_db_compression to reduce the size of the backup artifacts.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
After a successful backup, a backup file is created at /ansible/mybackup/automation-platform-backup-<date/time>.tar.gz.
Install with internet access Copy linkLink copied!
Choose the Red Hat Ansible Automation Platform installation program if your Red Hat Enterprise Linux environment is connected to the internet. Installing with internet access retrieves the latest required repositories, packages, and dependencies.
About this task Copy linkLink copied!
Choose one of the following ways to set up your Ansible Automation Platform installation program.
Procedure Copy linkLink copied!
- Tarball install
- RPM install
Install without internet access Copy linkLink copied!
Use the Ansible Automation Platform Bundle installation program for offline environments or to avoid installing dependencies from online repositories. RHEL repository access is still required; all other data is in the archive.
Procedure Copy linkLink copied!
Set up the inventory file Copy linkLink copied!
Before upgrading your Red Hat Ansible Automation Platform installation, edit the inventory file to match your required configuration. You can keep the same parameters from your existing deployment or you can update the parameters to match any changes to your environment.
About this task Copy linkLink copied!
You can find sample inventory files in the Test topologies GitHub repository, or in Choose a deployment method and topology.
Procedure Copy linkLink copied!
Remove the 2.4 database for Event-Driven Ansible Copy linkLink copied!
Ansible Automation Platform 2.6 supports upgrades from Ansible Automation Platform 2.4 environments for all components, except for Event-Driven Ansible. Database migrations between Event-Driven Ansible 2.4 and Event-Driven Ansible 2.6 are not compatible.
About this task Copy linkLink copied!
If you are upgrading from Ansible Automation Platform 2.4 to 2.6, you must first remove the Event-Driven Ansible 2.4 database. A new Event-Driven Ansible 2.6 database gets created automatically after the upgrade. You can then reconnect Automation Decisions (Event-Driven Ansible controller) to Automation Execution (automation controller) to run rulebook activations.
When upgrading from Ansible Automation Platform 2.5 to 2.6, the Event-driven Ansible component will be updated automatically. You are not required to delete the existing Event-Driven Ansible 2.5 database before upgrading your platform to 2.6.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
- Run the Ansible Automation Platform installer setup script.
- After the upgrade is completed, reconnect Automation Decisions (Event-Driven Ansible controller) to Automation Execution (automation controller) to run rulebook activations successfully.
Run the installer setup script and verify platform accounts Copy linkLink copied!
Execute the Red Hat Ansible Automation Platform installer setup script after configuring your inventory file. This action initiates the installation or update process, applying all your custom settings to deploy the platform successfully.
Procedure Copy linkLink copied!
setup.sh script:
$ ./setup.sh
Results Copy linkLink copied!
The installation will begin.
Verify user migration Copy linkLink copied!
During the upgrade to Ansible Automation Platform 2.6, controller user accounts are converted into platform user accounts. Controller administrators retain their administrative privileges, but they are converted into platform administrator privileges.
About this task Copy linkLink copied!
Other controller accounts become platform users, and their existing permissions are mapped over appropriately after an initial password reset. Users with existing accounts associated with other components (like private automation hub and Event-Driven Ansible) must have their passwords reset by their administrator before they can log in.
Authenticator configurations are automatically migrated. SSO and LDAP accounts do not require any manual migration steps, including password resets, with the exception of accounts that use a certificate from the trust store. See Configuring authentication in the Ansible Automation Platform for more information on migrating authentication configurations that use a custom certificate.
After your upgrade to Ansible Automation Platform 2.6 is complete, verify that you can log in to the upgraded platform.