Share Feedback to help us keep improving.
Installing on OpenShift Container Platform
Install and configure Ansible Automation Platform operator on OpenShift Container Platform
Abstract
Preface Copy linkLink copied to clipboard!
Thank you for your interest in Red Hat Ansible Automation Platform. Ansible Automation Platform is a commercial offering that helps teams manage complex multi-tier deployments by adding control, knowledge, and delegation to Ansible-powered environments.
This guide helps you to understand the installation, migration and upgrade requirements for deploying the Ansible Automation Platform Operator on OpenShift Container Platform.
Providing feedback on Red Hat documentation Copy linkLink copied to clipboard!
If you have a suggestion to improve this documentation, or find an error, you can contact technical support at https://access.redhat.com to open a request.
Chapter 1. Installing Red Hat Ansible Automation Platform Operator on Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
As a system administrator, you can use Ansible Automation Platform Operator to deploy new Ansible Automation Platform instances in your OpenShift environment.
1.1. Planning your Red Hat Ansible Automation Platform Operator on Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
Red Hat Ansible Automation Platform is supported on both Red Hat Enterprise Linux and Red Hat OpenShift.
OpenShift operators help install and automate day-2 operations of complex, distributed software on Red Hat OpenShift Container Platform. The Ansible Automation Platform Operator enables you to deploy and manage Ansible Automation Platform components on Red Hat OpenShift Container Platform.
You can use this section to help plan your Red Hat Ansible Automation Platform installation on your Red Hat OpenShift Container Platform environment. Before installing, review the supported installation scenarios to determine which meets your requirements.
1.1.1. About Ansible Automation Platform Operator Copy linkLink copied to clipboard!
The Ansible Automation Platform Operator provides cloud-native, push-button deployment of new Ansible Automation Platform instances in your OpenShift environment.
The Ansible Automation Platform Operator includes resource types to deploy and manage instances of automation controller and private automation hub.
It also includes automation controller job resources for defining and launching jobs inside your automation controller deployments.
Deploying Ansible Automation Platform instances with a Kubernetes native operator offers several advantages over launching instances from a playbook deployed on Red Hat OpenShift Container Platform, including upgrades and full lifecycle support for your Red Hat Ansible Automation Platform deployments.
You can install the Ansible Automation Platform Operator from the Red Hat Operators catalog in OperatorHub.
For information about the Ansible Automation Platform Operator system requirements and infrastructure topology see Operator topologies in Tested deployment models
1.1.2. OpenShift Container Platform version compatibility Copy linkLink copied to clipboard!
The Ansible Automation Platform Operator to install Ansible Automation Platform 2.6 is available on OpenShift Container Platform 4.12 through to 4.17 and later versions.
1.1.3. Supported installation scenarios for Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
You can use the OperatorHub on the Red Hat OpenShift Container Platform web console to install Ansible Automation Platform Operator.
Alternatively, you can install Ansible Automation Platform Operator from the OpenShift Container Platform command-line interface (CLI), oc. See Installing Red Hat Ansible Automation Platform Operator from the OpenShift Container Platform CLI for help with this.
After you have installed Ansible Automation Platform Operator you must create an Ansible Automation Platform custom resource (CR). This enables you to manage Ansible Automation Platform components from a single unified interface known as the platform gateway. In version 2.6, you must create an Ansible Automation Platform CR, even if you have an existing automation controller, automation hub, or Event-Driven Ansible, components.
If existing components have already been deployed, you must specify these components on the Ansible Automation Platform CR. You must create the custom resource in the same namespace as the existing components.
| Supported scenarios | Supported scenarios with existing components |
|---|---|
|
|
1.1.4. Custom resources Copy linkLink copied to clipboard!
You can define custom resources for each primary installation workflows.
1.1.5. Ansible Automation Platform Operator CSRF management Copy linkLink copied to clipboard!
In Ansible Automation Platform version 2.6 the Ansible Automation Platform Operator on OpenShift Container Platform creates OpenShift Routes and configures your Cross-site request forgery (CSRF) settings automatically.
When using external ingress, you must configure your CSRF on the ingress, for help with this see Configuring your CSRF settings for your platform gateway operator ingress.
In previous versions CSRF was configurable through the automation controller user interface, in version 2.6 automation controller settings are still present but have no impact on CSRF settings for the platform gateway.
The following table helps to clarify which settings are applicable for which component.
| UI setting | Applicable for |
|---|---|
| Subscription | automation controller |
| platform gateway | platform gateway |
| User Preferences | User interface |
| System | Automation controller |
| Job | Automation controller |
| Logging | Automation controller |
| Troubleshooting | Automation controller |
1.1.6. Additional resources Copy linkLink copied to clipboard!
To learn more about OpenShift Container Platform OperatorHub you can review OpenShift Container Platform documentation:
1.2. Deploying the Red Hat Ansible Automation Platform Operator on Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
Use this procedure to guide you through deploying the Red Hat Ansible Automation Platform Operator through the Operators section on Red Hat OpenShift Container Platform, selecting the appropriate update channel and installation mode, and then verifying the successful deployment.
1.2.1. Installing the Red Hat Ansible Automation Platform Operator on Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
When installing your Ansible Automation Platform Operator you have a choice of a namespace-scoped operator or a cluster-scoped operator. This depends on the update channel you choose, stable-2.x or cluster-scoped-2.x.
A namespace-scoped operator is confined to one namespace, offering tighter security. A cluster-scoped operator spans multiple namespaces, which grants broader permissions.
If you are managing multiple Ansible Automation Platform instances with the same Ansible Automation Platform Operator version, use the cluster-scoped operator, which uses a single operator to manage all Ansible Automation Platform custom resources in your cluster.
If you need multiple operator versions in the same cluster, you must use the namespace-scoped operator. The operator and the deployment share the same namespace. This can also be helpful when debugging because the operator logs pertain to custom resources in that namespace only.
For information about the Ansible Automation Platform Operator system requirements and infrastructure topology see Operator topologies in Tested deployment models.
For help with installing a namespace or cluster-scoped operator see the following procedure.
You cannot deploy Ansible Automation Platform in the default namespace on your OpenShift Cluster. The aap namespace is recommended. You can use a custom namespace, but it should run only Ansible Automation Platform.
Prerequisites
- You have installed the Red Hat Ansible Automation Platform catalog in OperatorHub.
-
You have created a
StorageClassfor Dynamic provisioning OR you have pre-created PVCs for static provisioning. See Configure static storage for Ansible Automation Platform for manual setup. To run Red Hat OpenShift Container Platform clusters on Amazon Web Services (AWS) with
ReadWriteManyaccess mode, you must add NFS or other storage.-
For information about the AWS Elastic Block Store (EBS) or to use the
aws-ebsstorage class, see Persistent storage using AWS Elastic Block Store. -
To use multi-attach
ReadWriteManyaccess mode for AWS EBS, see Attaching a volume to multiple instances with Amazon EBS Multi-Attach.
-
For information about the AWS Elastic Block Store (EBS) or to use the
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Search for Ansible Automation Platform and click .
Select an Update Channel:
- stable-2.x: installs a namespace-scoped operator, which limits deployments of automation hub and automation controller instances to the namespace the operator is installed in, this is suitable for most cases. The stable-2.x channel does not require administrator privileges and utilizes fewer resources because it only monitors a single namespace.
- stable-2.x-cluster-scoped: installs the Ansible Automation Platform Operator in a single namespace that manages Ansible Automation Platform custom resources and deployments in all namespaces. The Ansible Automation Platform Operator requires administrator privileges for all namespaces in the cluster.
- Select Installation Mode, Installed Namespace, and Approval Strategy.
- Click .
Verification
The installation process begins. When installation finishes, a modal appears notifying you that the Ansible Automation Platform Operator is installed in the specified namespace.
- Click to view your newly installed Ansible Automation Platform Operator and verify the following operator custom resources are present:
| Automation controller | Automation hub | Event-Driven Ansible (EDA) | Red Hat Ansible Lightspeed |
|---|---|---|---|
|
|
|
|
- Verify that the Ansible Automation Platform operator displays a Succeeded status.
1.3. Installing Red Hat Ansible Automation Platform Operator from the Red Hat OpenShift Container Platform CLI Copy linkLink copied to clipboard!
Use these instructions to install the Ansible Automation Platform Operator on Red Hat OpenShift Container Platform from the OpenShift Container Platform command-line interface (CLI) using the oc command.
1.3.1. Installing the Ansible Automation Platform Operator in a namespace Copy linkLink copied to clipboard!
Use this procedure to subscribe a namespace to an operator.
You cannot deploy Ansible Automation Platform in the default namespace on your OpenShift Cluster. The 'ansible-automation-platform' namespace is recommended. You can use a custom namespace, but it should run only Ansible Automation Platform.
Prerequisites
- Access to Red Hat OpenShift Container Platform using an account with operator installation permissions.
-
The OpenShift Container Platform CLI
occommand is installed on your local system. Refer to Installing the OpenShift CLI in the Red Hat OpenShift Container Platform product documentation for further information.
Procedure
Create a project for the operator.
oc new-project ansible-automation-platform-
Create a file called
sub.yaml. Add the following YAML code to the
sub.yamlfile.--- apiVersion: operators.coreos.com/v1 kind: OperatorGroup metadata: name: ansible-automation-platform-operator namespace: ansible-automation-platform spec: targetNamespaces: - ansible-automation-platform --- apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: ansible-automation-platform namespace: ansible-automation-platform spec: channel: 'stable-2.6' installPlanApproval: Automatic name: ansible-automation-platform-operator source: redhat-operators sourceNamespace: openshift-marketplace ---This file creates a
Subscriptionobject calledansible-automation-platformthat subscribes theansible-automation-platformnamespace to theansible-automation-platform-operatoroperator.Run the
oc applycommand to create the objects specified in thesub.yamlfile:oc apply -f sub.yamlVerify the CSV PHASE reports "Succeeded" before proceeding using the
oc get csv -n ansible-automation-platformcommand:oc get csv -n ansible-automation-platform NAME DISPLAY VERSION REPLACES PHASE aap-operator.v2.6.0-0.1728520175 Ansible Automation Platform 2.6.0+0.1728520175 aap-operator.v2.6.0-0.1727875185 SucceededCreate an
AnsibleAutomationPlatformobject calledexamplein theansible-automation-platformnamespace.To change the Ansible Automation Platform and its components from
example, edit the name field in themetadata:section and replace example with the name you want to use:oc apply -f - <<EOF apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: example namespace: ansible-automation-platform spec: # Platform image_pull_policy: IfNotPresent # Components controller: disabled: false eda: disabled: false hub: disabled: false ## Modify to contain your RWM storage class name storage_type: file file_storage_storage_class: <your-read-write-many-storage-class> file_storage_size: 10Gi ## uncomment if using S3 storage for Content pod # storage_type: S3 # object_storage_s3_secret: example-galaxy-object-storage ## uncomment if using Azure storage for Content pod # storage_type: azure # object_storage_azure_secret: azure-secret-name lightspeed: disabled: true EOF
Chapter 2. Installing Red Hat Ansible Automation Platform gateway on Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
As a namespace administrator, you can use Ansible Automation Platform gateway to manage new Ansible Automation Platform components in your OpenShift environment.
The Ansible Automation Platform gateway uses the Ansible Automation Platform custom resource to manage and integrate the following Ansible Automation Platform components into a unified user interface:
- Automation controller
- Automation hub
- Event-Driven Ansible
- Red Hat Ansible Lightspeed (This feature is disabled by default, you must opt in to use it.)
Before you can deploy the platform gateway you must have Ansible Automation Platform Operator installed in a namespace. If you have not installed Ansible Automation Platform Operator see Installing the Red Hat Ansible Automation Platform Operator on Red Hat OpenShift Container Platform.
Platform gateway is only available under Ansible Automation Platform Operator version 2.6. Every component deployed under Ansible Automation Platform Operator 2.6 defaults to version 2.6.
If you have the Ansible Automation Platform Operator and some or all of the Ansible Automation Platform components installed see Deploying the platform gateway with existing Ansible Automation Platform components for how to proceed.
2.1. Linking your components to the platform gateway Copy linkLink copied to clipboard!
After installing the Ansible Automation Platform Operator in your namespace you can set up your Ansible Automation Platform instance. Then link all the platform components to a single user interface.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Details tab.
- On the Ansible Automation Platform tile click .
- From the Create Ansible Automation Platform page enter a name for your instance in the Name field.
Click and replace the
specsection with the following:spec: database: resource_requirements: requests: cpu: 200m memory: 512Mi storage_requirements: requests: storage: 100Gi controller: disabled: false eda: disabled: false hub: disabled: false storage_type: file file_storage_storage_class: <read-write-many-storage-class> file_storage_size: 10Gi-
You must specify your desired value for the
<read-write-many-storage-class>placeholder. - Click .
Verification
Verify instance deployment (UI):
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the All instances tab.
- Verify that the Ansible Automation Platform instance, Automation Controller, Event-Driven Ansible, and Automation Hub instances are listed.
Verify pod status (UI):
- Navigate to → .
- Switch to the project (namespace) where you deployed the instance.
- Verify that all related pods display a Running or Completed status.
Verify Platform Route (CLI):
Run the following command to confirm the URL for accessing the platform gateway:
oc get route
2.2. Deploying the platform gateway with existing Ansible Automation Platform components Copy linkLink copied to clipboard!
You can link any components of the Ansible Automation Platform, that you have already installed to a new Ansible Automation Platform instance.
The following procedure simulates a scenario where you have automation controller as an existing component and want to add automation hub and Event-Driven Ansible.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Click and edit your Update channel to stable-2.6.
- Click and on the Ansible Automation Platform tile click .
From the Create Ansible Automation Platform page enter a name for your instance in the Name field.
-
When deploying an Ansible Automation Platform instance, ensure that
auto_updateis set to the default value offalseon your existing automation controller instance in order for the integration to work.
-
When deploying an Ansible Automation Platform instance, ensure that
Click and copy in the following:
apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: example-aap namespace: aap spec: database: resource_requirements: requests: cpu: 200m memory: 512Mi storage_requirements: requests: storage: 100Gi # Platform image_pull_policy: IfNotPresent # Components controller: disabled: false name: existing-controller-name eda: disabled: false hub: disabled: false ## uncomment if using file storage for Content pod storage_type: file file_storage_storage_class: <your-read-write-many-storage-class> file_storage_size: 10Gi ## uncomment if using S3 storage for Content pod # storage_type: S3 # object_storage_s3_secret: example-galaxy-object-storage ## uncomment if using Azure storage- For new components, if you do not specify a name, a default name is generated.
- Click .
To access your new instance, see Accessing the platform gateway.
NoteIf you have an existing controller with a managed Postgres pod, after creating the Ansible Automation Platform resource your automation controller instance will continue to use that original Postgres pod. If you were to do a fresh install you would have a single Postgres managed pod for all instances.
2.3. Accessing platform gateway through the OpenShift Container Platform UI Copy linkLink copied to clipboard!
Use the Ansible Automation Platform instance as your default. This instance links the automation controller, automation hub, and Event-Driven Ansible deployments to a single interface.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to →
- Click the link under Location for Ansible Automation Platform.
- This redirects you to the Ansible Automation Platform login page. Enter "admin" as your username in the Username field.
For the password you must:
- Go to → .
- Click and copy the password.
- Paste the password into the Password field.
- Click .
Apply your subscription:
- Click or .
- Upload your manifest or enter your username and password.
- Select your subscription from the Subscription list.
- Click . This redirects you to the Analytics page.
- Click .
- Select the I agree to the terms of the license agreement checkbox.
- Click .
Verification
You now have access to the platform gateway user interface.
Troubleshooting
If you cannot access the Ansible Automation Platform see Frequently asked questions on platform gateway for help with troubleshooting and debugging.
2.4. Accessing platform gateway through the OpenShift Container Platform CLI Copy linkLink copied to clipboard!
You can use the OpenShift Container Platform CLI to fetch the web address and the password of the Automation controller that you created. To login to the platform gateway, you need the web address and the password.
2.4.1. Fetching the platform gateway web address Copy linkLink copied to clipboard!
A Red Hat OpenShift Container Platform route exposes a service at a host name, so that external clients can reach it by name. When you created the platform gateway instance, a route was created for it. The route inherits the name that you assigned to the platform gateway object in the YAML file.
Procedure
Use the following command to fetch the routes:
oc get routes -n <platform_namespace>Verification
You can see in the following example, the
exampleplatform gateway is running in theansible-automation-platformnamespace.
$ oc get routes -n ansible-automation-platform
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
example example-ansible-automation-platform.apps-crc.testing example-service http edge/Redirect None
The address for the platform gateway instance is example-ansible-automation-platform.apps-crc.testing.
2.4.2. Fetching the platform gateway password Copy linkLink copied to clipboard!
The YAML block for the platform gateway instance in the AnsibleAutomationPlatform object assigns values to the name and admin_user keys.
Procedure
Use these values in the following command to fetch the password for the platform gateway instance.
oc get secret/<your instance name>-<admin_user>-password -o yamlThe default value for admin_user is
admin. Modify the command if you changed the admin username in theAnsibleAutomationPlatformobject.The following example retrieves the password for a platform gateway object called
example:oc get secret/example-admin-password -o yamlThe base64 encoded password for the platform gateway instance is listed in the
metadatafield in the output:$ oc get secret/example-admin-password -o yaml apiVersion: v1 data: password: ODzLODzLODzLODzLODzLODzLODzLODzLODzLODzLODzL kind: Secret metadata: labels: app.kubernetes.io/component: aap app.kubernetes.io/name: example app.kubernetes.io/operator-version: "" app.kubernetes.io/part-of: example name: example-admin-password namespace: ansible-automation-platform
2.4.3. Decoding the platform gateway password Copy linkLink copied to clipboard!
After you have fetched your gateway password, you must decode it from base64.
Procedure
- Run the following command to decode your password from base64:
oc get secret/example-admin-password -o jsonpath={.data.password} | base64 --decode
Chapter 3. Managing Ansible Automation Platform subscriptions, updates, and support Copy linkLink copied to clipboard!
Ansible is an open source software project and is licensed under the GNU General Public License version 3, as described in the Ansible Source Code.
You must have valid subscriptions attached before installing Ansible Automation Platform.
3.1. Trial and evaluation Copy linkLink copied to clipboard!
You need a subscription to run Ansible Automation Platform. You can start by signing up for a free trial subscription.
- Trial subscriptions for Ansible Automation Platform are available at the Red Hat product trial center.
- Support is not included in a trial subscription or during an evaluation of the Ansible Automation Platform.
3.2. Node counting in subscriptions Copy linkLink copied to clipboard!
The Ansible Automation Platform subscription defines the number of Managed Nodes that can be managed as part of your subscription.
For more information about managed node requirements for subscriptions, see How are "managed nodes" defined as part of the Red Hat Ansible Automation Platform offering.
Ansible does not recycle node counts or reset automated hosts.
3.3. Subscription Types Copy linkLink copied to clipboard!
Red Hat Ansible Automation Platform is provided at various levels of support and number of machines as an annual subscription.
Standard:
- Manage any size environment
- Enterprise 8x5 support and SLA
- Maintenance and upgrades included
- Review the SLA at Product Support Terms of Service
- Review the Red Hat Support Severity Level Definitions
Premium:
- Manage any size environment, including mission-critical environments
- Premium 24x7 support and SLA
- Maintenance and upgrades included
- Review the SLA at Product Support Terms of Service
- Review the Red Hat Support Severity Level Definitions
All subscription levels include regular updates and releases of automation controller, Ansible, and any other components of the Ansible Automation Platform.
For more information, contact Ansible through the Red Hat Customer Portal or at the Ansible site.
3.4. Obtaining a manifest file Copy linkLink copied to clipboard!
You can obtain a subscription manifest in the Subscription Allocations section of Red Hat Subscription Management.
After you obtain a subscription allocation, you can download its manifest file and upload it to activate Ansible Automation Platform.
To begin, log in to the Red Hat Customer Portal by using your administrator user account and follow the procedures listed.
3.4.1. Create a subscription allocation Copy linkLink copied to clipboard!
With a new subscription allocation you can set aside subscriptions and entitlements for a system that is currently offline or air-gapped. This is necessary before you download its manifest and upload it to Ansible Automation Platform.
Procedure
- From the Subscription Allocations page, click .
- Enter a name for the allocation so that you can find it later.
- Select Type: Satellite 6.16 as the management application.
- Click .
3.4.2. Adding subscriptions to a subscription allocation Copy linkLink copied to clipboard!
After you create an allocation, you can add the subscriptions you need for Ansible Automation Platform to run properly. This is necessary before you download the manifest and add it to Ansible Automation Platform.
Procedure
- From the Subscription Allocations page, click the name of the Subscription Allocation to which you want to add a subscription.
- Click the Subscriptions tab.
- Click .
- Enter the number of Ansible Automation Platform Entitlements you plan to add.
- Click .
3.4.3. Downloading a manifest file Copy linkLink copied to clipboard!
After you create an allocation with the appropriate subscriptions on it, you can download the manifest file from Red Hat Subscription Management.
Procedure
- From the Subscription Allocations page, click the name of the Subscription Allocation to which you want to generate a manifest.
- Click the Subscriptions tab.
Click to download the manifest file.
This downloads a file
manifest_<allocation name>_<date>.zipto your default downloads folder.
3.5. Activating Red Hat Ansible Automation Platform Copy linkLink copied to clipboard!
Red Hat Ansible Automation Platform uses available subscriptions or a subscription manifest to allow the use of Ansible Automation Platform.
To obtain a subscription, you can do either of the following:
- Use your Red Hat username and password, service account credentials, or Satellite credentials when you launch Ansible Automation Platform.
- Upload a subscriptions manifest file either using the Red Hat Ansible Automation Platform interface or manually in an Ansible Playbook.
3.5.1. Activate with credentials Copy linkLink copied to clipboard!
Activate your Ansible Automation Platform subscription at the first launch by providing either Red Hat service account credentials or your personal Red Hat username and password. This process automatically retrieves and imports the required license, which grants the platform access to Red Hat content and entitlement services.
You are opted in for Automation Analytics by default when you activate the platform on first login. This helps Red Hat improve the product by delivering you a much better user experience. You can opt out after activating Ansible Automation Platform by taking the following steps:
- From the navigation panel, select → → .
- Clear the Gather data for Automation Analytics option.
- Click .
Procedure
- Log in to Red Hat Ansible Automation Platform.
- Select the Service Account tab in the subscription wizard.
- Enter your Client ID and Client secret.
Select your subscription from the Subscription list.
NoteYou can also enter your Satellite username and password in the Satellite tab if your cluster nodes are registered to Satellite through Subscription Manager.
- Review the End User License Agreement and select I agree to the End User License Agreement.
- Click .
Verification
After your subscription has been accepted, subscription details are displayed. A status of Compliant indicates your subscription is in compliance with the number of hosts you have automated within your subscription count. Otherwise, your status shows as Out of Compliance, indicating you have exceeded the number of hosts in your subscription. Other important information displayed include the following:
- Hosts automated
- Host count automated by the job, which consumes the license count
- Hosts imported
- Host count considering all inventory sources (does not impact hosts remaining)
- Hosts remaining
- Total host count minus hosts automated
3.5.2. Activate with a manifest file Copy linkLink copied to clipboard!
If you have a subscriptions manifest, you can upload the manifest file by using the Red Hat Ansible Automation Platform interface.
You are opted in for Automation Analytics by default when you activate the platform on first login. This helps Red Hat improve the product by delivering you a much better user experience. You can opt out after activating Ansible Automation Platform by taking the following steps:
- From the navigation panel, select → → .
- Clear the Gather data for Automation Analytics option.
- Click .
Prerequisites
You must have a Red Hat subscription manifest file exported from the Red Hat Customer Portal. For more information, see Obtaining a manifest file.
Procedure
Log in to Red Hat Ansible Automation Platform.
- If you are not immediately taken to the subscription wizard, go to → .
- Select the Subscription manifest tab.
- Click and select your manifest file.
- Review the End User License Agreement and select I agree to the End User License Agreement.
Click .
NoteIf the button is disabled on the subscription wizard page, clear the USERNAME and PASSWORD fields.
Verification
After your subscription has been accepted, subscription details are displayed. A status of Compliant indicates your subscription is in compliance with the number of hosts you have automated within your subscription count. Otherwise, your status shows as Out of Compliance, indicating you have exceeded the number of hosts in your subscription. Other important information displayed include the following:
- Hosts automated
- Host count automated by the job, which uses the subscription count
- Hosts imported
- Host count considering all inventory sources (does not impact hosts remaining)
- Hosts remaining
- Total host count minus hosts automated
Chapter 4. Customizing your Red Hat Ansible Automation Platform Operator on OpenShift Container Platform Copy linkLink copied to clipboard!
After installing the Ansible Automation Platform Operator, you can customize your deployment by setting configuration options for its nested components. You must define these parameters on the parent Automation Ansible Platform Custom Resource (CR). The operator automatically disseminates the configuration to each component of the platform.
4.1. Discovering custom resource configuration parameters through the OpenShift Container Platform UI Copy linkLink copied to clipboard!
You can discover the configuration parameters for your Ansible Automation Platform Operator by viewing its Custom Resource (CR). The parameters are listed in the YAML schema.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Go to the Ansible Automation Platform tab and click the name of your CR.
Switch to the YAML view tab to view and edit the configuration. The available parameters are listed in the YAML schema.
NoteIf you cannot see the Schema panel, you might have closed or minimized the side bar. Click to reopen it.
4.2. Discovering custom resource definition configuration parameters Copy linkLink copied to clipboard!
The Ansible Automation Platform Operator manages multiple custom resources (CRs), each with its own configuration parameters. Use the oc explain command to discover all available configuration options for the AnsibleAutomationPlatform CR and its nested components.
Procedure
To see all available configuration parameters for a top-level CR, run:
oc explain ansibleautomationplatform.specTo view component-specific configuration options nested under the Ansible Automation Platform CR, query them through the component section:
oc explain ansibleautomationplatform.spec.controller.postgres_configuration_secret oc explain ansibleautomationplatform.spec.controller.route_tls_termination_mechanism oc explain ansibleautomationplatform.spec.hub.storage_type oc explain ansibleautomationplatform.spec.eda.automation_server_urlTo explore all nested fields for a specific component, use the
--recursiveflag:oc explain ansibleautomationplatform.spec.controller --recursive oc explain ansibleautomationplatform.spec.hub --recursive oc explain ansibleautomationplatform.spec.eda --recursiveNoteYou can also query individual component CRs directly if needed:
oc explain automationcontroller.spec oc explain automationhub.spec oc explain eda.specHowever, when configuring components through the Ansible Automation Platform CR (recommended approach), use the nested paths shown above.
4.3. Defining a parameter on a nested component Copy linkLink copied to clipboard!
To define a parameter, such as the resource_requirements for automation controller, you add the configuration to the parent Ansible Automation Platform CR YAML. This ensures that the Ansible Automation Platform CR is the single source of truth for your deployment.
The image and image_version, as well as the {component}_image and {component}_image_version parameters are intended for development or hotfix purposes only.
Do not use these in production environments. These settings bypass standard version management and can lead to configuration drift, inconsistent deployments, and difficulty troubleshooting issues.
Procedure
- Log in to OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Go to the Ansible Automation Platform tab and click the name of your CR.
- In the YAML view tab, locate the spec section.
Add the
automationcontrollerparameter with the nestedresource_requirementsparameter and its value:spec: database: resource_requirements: requests: cpu: 200m memory: 512Mi storage_requirements: requests: storage: 100Gi- Click to apply the changes. The operator automatically applies this configuration to the automation controller component.
4.4. Customizing your resource requirements Copy linkLink copied to clipboard!
Customize resource requirements for your Ansible Automation Platform components to optimize performance and resource allocation in your specific environment.
The following section provides a complete code block with the default resource requirements for each component. The main reasons for customizing your resource requirements include:
- Performance Tuning: Increase resource limits for components that perform heavy workloads.
-
To comply with a
ResourceQuotaenforced by the cluster admin. - Resource Constrained Environments: Decrease resource requests to conserve cluster resources in development or test environments.
- Environment Specifics: Align the resource allocation with the capacity of your OpenShift or Kubernetes cluster nodes.
You can use this reference as a starting point. Copy the full code block for your Ansible Automation Platform instance and modify the values for the components you want to change. This method helps ensure all default settings are applied correctly, reducing the risk of deployment errors.
When adding parameters, you can add it to the Ansible Automation Platform custom resource (CR) only and those parameters will work their way down to the nested CRs.
When removing parameters, you have to remove them both from the Ansible Automation Platform CR and the nested CR, for example, the Automation Controller CR.
# Example of defining custom resource requirements for all components
# This can be useful for clusters with a ResourceQuota in the AAP namespace
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: aap
spec:
# Platform
api:
replicas: 1
resource_requirements:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 1000Mi
redis:
replicas: 1
resource_requirements:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 500Mi
database:
resource_requirements:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 800Mi
# Components
controller:
disabled: false
uwsgi_processes: 2
task_resource_requirements:
requests:
cpu: 100m
memory: 150Mi
limits:
cpu: 1000m
memory: 1200Mi
web_resource_requirements:
requests:
cpu: 100m
memory: 200Mi
limits:
cpu: 200m
memory: 1600Mi
ee_resource_requirements:
requests:
cpu: 100m
memory: 64Mi
limits:
cpu: 1000m
memory: 500Mi
redis_resource_requirements:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 100m
memory: 200Mi
rsyslog_resource_requirements:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 250Mi
init_container_resource_requirements:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 200Mi
eda:
disabled: false
api:
replicas: 1
resource_requirements:
requests:
cpu: 50m
memory: 350Mi
limits:
cpu: 500m
memory: 400Mi
ui:
replicas: 1
resource_requirements:
requests:
cpu: 25m
memory: 64Mi
limits:
cpu: 500m
memory: 150Mi
scheduler:
replicas: 1
resource_requirements:
requests:
cpu: 50m
memory: 200Mi
limits:
cpu: 500m
memory: 250Mi
worker:
replicas: 2
resource_requirements:
requests:
cpu: 25m
memory: 200Mi
limits:
cpu: 250m
memory: 250Mi
default_worker:
replicas: 1
resource_requirements:
requests:
cpu: 25m
memory: 200Mi
limits:
cpu: 500m
memory: 400Mi
activation_worker:
replicas: 1
resource_requirements:
requests:
cpu: 25m
memory: 150Mi
limits:
cpu: 500m
memory: 400Mi
event_stream:
replicas: 1
resource_requirements:
requests:
cpu: 25m
memory: 150Mi
limits:
cpu: 100m
memory: 300Mi
hub:
disabled: false
## uncomment if using file storage for Content pod
storage_type: file
file_storage_storage_class: nfs-local-rwx # replace with the rwx storage class for your cluster
file_storage_size: 50Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
api:
replicas: 1
resource_requirements:
requests:
cpu: 150m
memory: 256Mi
limits:
cpu: 800m
memory: 500Mi
content:
replicas: 1
resource_requirements:
requests:
cpu: 150m
memory: 256Mi
limits:
cpu: 800m
memory: 1200Mi
worker:
replicas: 1
resource_requirements:
requests:
cpu: 150m
memory: 256Mi
limits:
cpu: 800m
memory: 400Mi
web:
replicas: 1
resource_requirements:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 300Mi
redis:
replicas: 1
resource_requirements:
requests:
cpu: 100m
memory: 250Mi
limits:
cpu: 300m
memory: 400Mi
# lightspeed:
# disabled: true
# End state:
# * Controller deployed and named: myaap-controller
# * EDA deployed and named: myaap-eda
# * Hub deployed and named: myaap-hub
Chapter 5. Configuring Red Hat Ansible Automation Platform components on Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
After you have installed Ansible Automation Platform Operator and set up your Ansible Automation Platform components, you can configure them for your desired output.
5.1. Configuring platform gateway on Red Hat OpenShift Container Platform web console Copy linkLink copied to clipboard!
You can use these instructions to further configure the platform gateway operator on Red Hat OpenShift Container Platform, specify custom resources, and deploy Ansible Automation Platform with an external database.
5.1.1. Configuring an external database for platform gateway on Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
There are two scenarios for deploying Ansible Automation Platform with an external database:
| Scenario | Action required |
| Fresh install | You must specify a single external database instance for the platform to use for the following:
See the aap-configuring-external-db-all-default-components.yml example in the 14.1. Custom resources section for help with this. If using Red Hat Ansible Lightspeed, use the aap-configuring-external-db-with-lightspeed-enabled.yml example. |
| Existing external database in 2.4 |
Your existing external database remains the same after upgrading but you must specify the |
To deploy Ansible Automation Platform with an external database, you must first create a Kubernetes secret with credentials for connecting to the database.
By default, the Ansible Automation Platform Operator automatically creates and configures a managed PostgreSQL pod in the same namespace as your Ansible Automation Platform deployment. You can deploy Ansible Automation Platform with an external database instead of the managed PostgreSQL pod that the Ansible Automation Platform Operator automatically creates.
Using an external database lets you share and reuse resources and manually manage backups, upgrades, and performance optimizations.
The same external database (PostgreSQL instance) can be used for both automation hub, automation controller, and platform gateway as long as the database names are different. In other words, you can have multiple databases with different names inside a single PostgreSQL instance.
The following section outlines the steps to configure an external database for your platform gateway on a Ansible Automation Platform Operator.
Prerequisite
The external database must be a PostgreSQL database that is the version supported by the current release of Ansible Automation Platform. The external postgres instance credentials and connection information must be stored in a secret, which is then set on the platform gateway spec.
Ansible Automation Platform 2.6 supports PostgreSQL 15 for its managed databases and additionally supports PostgreSQL 15, 16, and 17 for external databases.
If you choose to use an externally managed database with version 16 or 17 you must also rely on external backup and restore processes.
Procedure
Create a
postgres_configuration_secretYAML file, following the template below:apiVersion: v1 kind: Secret metadata: name: external-postgres-configuration namespace: <target_namespace>1 stringData: host: "<external_ip_or_url_resolvable_by_the_cluster>"2 port: "<external_port>"3 database: "<desired_database_name>" username: "<username_to_connect_as>" password: "<password_to_connect_with>"4 type: "unmanaged" type: Opaque- Namespace to create the secret in. This should be the same namespace you want to deploy to.
- The resolvable hostname for your database node.
-
External port defaults to
5432. -
Value for variable
passwordshould not contain single or double quotes (', ") or backslashes (\) to avoid any issues during deployment, backup or restoration.
Apply
external-postgres-configuration-secret.ymlto your cluster using theoc createcommand.$ oc create -f external-postgres-configuration-secret.ymlNoteThe following example is for a platform gateway deployment. To configure an external database for all components, use the aap-configuring-external-db-all-default-components.yml example in the 14.1. Custom resources section.
When creating your
AnsibleAutomationPlatformcustom resource object, specify the secret on your spec, following the example below:apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: example-aap Namespace: aap spec: database: database_secret: automation-platform-postgres-configuration
5.1.2. Troubleshooting an external database with an unexpected DataStyle set Copy linkLink copied to clipboard!
When upgrading the Ansible Automation Platform Operator you may encounter an error like the following:
NotImplementedError: can't parse timestamptz with DateStyle 'Redwood, SHOW_TIME': '18-MAY-23 20:33:55.765755 +00:00'
Errors like this occur when you have an external database with an unexpected DateStyle set. You can refer to the following steps to resolve this issue.
Procedure
Edit the
/var/lib/pgsql/data/postgres.conffile on the database server:# vi /var/lib/pgsql/data/postgres.confFind and comment out the line:
#datestyle = 'Redwood, SHOW_TIME'Add the following setting immediately below the newly-commented line:
datestyle = 'iso, mdy'-
Save and close the
postgres.conffile. Reload the database configuration:
# systemctl reload postgresqlNoteRunning this command does not disrupt database operations.
5.1.3. Enabling HTTPS redirect for single sign-on (SSO) for platform gateway on OpenShift Container Platform Copy linkLink copied to clipboard!
HTTPS redirect for SAML, allows you to log in once and access all of the platform gateway without needing to reauthenticate.
Prerequisites
- You have successfully configured SAML in the gateway from the Ansible Automation Platform Operator. Refer to Configuring SAML authentication for help with this.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Go to → .
- Select your Ansible Automation Platform Operator deployment.
- Select All Instances and go to your AnsibleAutomationPlatform instance.
- Click the ⋮ icon and then select .
In the YAML view paste the following YAML code under the
spec:section:spec: extra_settings: - setting: REDIRECT_IS_HTTPS value: '"True"'- Click .
Verification
After you have added the REDIRECT_IS_HTTPS setting, wait for the pod to redeploy automatically. You can verify this setting makes it into the pod by running:
oc exec -it <gateway-pod-name> -- grep REDIRECT /etc/ansible-automation-platform/gateway/settings.py
5.1.4. Configuring your CSRF settings for your platform gateway Operator ingress Copy linkLink copied to clipboard!
The Red Hat Ansible Automation Platform Operator creates Openshift Routes and configures your Cross-site request forgery (CSRF) settings automatically. When using external ingress, you must configure your CSRF on the ingress to allow for cross-site requests. You can configure your platform gateway operator ingress under Advanced configuration.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Ansible Automation Platform tab.
For new instances, click .
- For existing instances, you can edit the YAML view by clicking the ⋮ icon and then .
- Click .
- Under Ingres annotations, enter any annotations to add to the ingress.
- Under Ingress TLS secret, click the drop-down list and select a secret from the list.
Under YAML view paste in the following code:
spec: extra_settings: - setting: CSRF_TRUSTED_ORIGINS value: - https://my-aap-domain.com- After you have configured your platform gateway, click at the bottom of the form view (Or in the case of editing existing instances).
Verification
Red Hat OpenShift Container Platform creates the pods. This may take a few minutes. You can view the progress by navigating to → and locating the newly created instance. Verify that the following operator pods provided by the Red Hat Ansible Automation Platform Operator installation from platform gateway are running:
| Operator manager controllers pods | Automation controller pods | Automation hub pods | Event-Driven Ansible pods | Platform gateway pods |
|---|---|---|---|---|
| The operator manager controllers for each of the four operators, include the following:
| After deploying automation controller, you can see the addition of the following pods:
| After deploying automation hub, you can see the addition of the following pods:
| After deploying EDA, you can see the addition of the following pods:
| After deploying platform gateway, you can see the addition of the following pods:
|
A missing pod can indicate the need for a pull secret. Pull secrets are required for protected or private image registries. See Using image pull secrets for more information. You can diagnose this issue further by running oc describe pod <pod-name> to see if there is an ImagePullBackOff error on that pod.
5.1.5. Configuring custom PostgreSQL settings for Ansible Automation Platform Copy linkLink copied to clipboard!
The postgres_extra_settings variable allows you to pass a list of custom name: value pairs directly to the PostgreSQL configuration file (/var/lib/pgsql/data/postgresql.conf) within the database pod.
Prerequisites
- You have installed the Ansible Automation Platform Operator.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Go to Operators → Installed Operators.
- Select your Ansible Automation Platform Operator deployment.
- Select All Instances and go to your Ansible Automation Platform instance.
- Click the ⋮ icon and then select Edit Ansible Automation Platform.
-
In the YAML view, locate the
spec:section Add the
databasesection and the required settings underspec:. The following example configures SSL ciphers and the maximum connections:spec: database: postgres_extra_settings: - name: max_connections value: '1000'- Click .
Verification
Inspect the PostgreSQL pod logs to verify the new settings.
Alternatively, you can run the following command to check the settings. Replace <aap postgres pod> with the name of your PostgreSQL pod.
+
$ oc exec -it <aap postgres pod> -- psql -d gateway -c "SHOW max_connections;"
5.1.6. Event-Driven Ansible event stream mTLS configuration variables Copy linkLink copied to clipboard!
You can configure Mutual Transport Layer Security (mTLS) for the Event-Driven Ansible event stream by setting parameters in the AnsibleAutomationPlatform custom resource.
You can configure the following parameters nested under spec.eda.event_stream:.
| Variable | Description | Default Value | Notes |
|---|---|---|---|
|
| Controls whether mTLS is enabled for the event stream endpoint. |
|
Set the value to |
|
| Customizes the mTLS endpoint prefix for the event stream. You must provide a valid URL prefix. |
| The value you provide is used as a prefix for the full endpoint URL. Customizing the full URL path is out of scope. |
Custom resource example
The following example shows how to configure the event stream parameters in the AnsibleAutomationPlatform custom resource:
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
namespace: ansible-automation-platform
spec:
eda:
disabled: false
event_stream:
mtls: true
mtls_prefix: /custom/path/mtls
5.1.7. Cascading client timeouts Copy linkLink copied to clipboard!
Cascading timeouts ensure that if an outer layer of the system times out, inner processes also terminate to prevent resource exhaustion from orphaned requests.
Set the primary timeout at the Gateway level to allow Ansible Automation Platform to synchronize timeouts automatically across component applications.
5.1.7.1. Timeout relationships Copy linkLink copied to clipboard!
The client_request_timeout serves as the primary value. Internal layers follow this logic:
-
The sum of the Envoy
request_timeoutand the gRPC authentication timeout (gateway_grpc_auth_service_timeout) must be less than theclient_request_timeout. -
The Nginx read timeout (
nginx_read_timeout) must be less than or equal to the Envoyrequest_timeout. -
The Python web server timeout (
python_webserver_timeout) must be less than or equal to thenginx_read_timeout.
5.1.7.2. Timeout grace periods Copy linkLink copied to clipboard!
At the uWSGI layer, the uwsgi_timeout_grace_period allows the application to attempt a graceful shutdown. During this period, the application displays a traceback of the current stack position. If the process does not exit within the grace period, Ansible Automation Platform terminates it.
5.1.8. Increase the OpenShift Container Platform Route timeout Copy linkLink copied to clipboard!
During high-volume API operations, such as Configuration as Code (CasC) restores, the OpenShift Route might time out if the operation exceeds the default 30-second window.
You must increase the client_request_timeout in the AnsibleAutomationPlatform Custom Resource (CR) to resolve HTTP 504 (Gateway Timeout) or HTTP 503 (Service Unavailable) errors.
Prerequisites
- Access to the OpenShift Container Platform web console with administrator privileges.
- Update the Ansible Automation Platform 2.6 operator to the latest version.
Procedure
- Log in to the OpenShift web console.
- Navigate to Installed Operators > Ansible Automation Platform > All Instances.
- Select your AnsibleAutomationPlatform instance.
- Click the YAML tab.
In the
spec:section, add theroute_annotationsto extend the timeout:spec: route_annotations: | haproxy.router.openshift.io/timeout: 180s- Click Save.
Verification
- Navigate to Networking > Routes in the OpenShift console.
- Select the route for your Ansible Automation Platform instance.
- Verify the Annotations section contains the updated timeout value.
5.1.9. Frequently asked questions on platform gateway Copy linkLink copied to clipboard!
Manage your Ansible Automation Platform deployment and troubleshoot common issues with these frequently asked questions. Learn about resource management, logging, and error recovery for your components.
- If I delete my Ansible Automation Platform deployment will I still have access to automation controller?
- No, automation controller, automation hub, and Event-Driven Ansible are nested within the deployment and are also deleted.
- How must I manage parameters when adding or removing them in the Ansible Automation Platform custom resource (CR) hierarchy?
- When adding parameters, you can add it to the Ansible Automation Platform custom resource (CR) only and those parameters will work their way down to the nested CRs.
When removing parameters, you have to remove them both from the Ansible Automation Platform CR and the nested CR, for example, the Automation Controller CR.
- Something went wrong with my deployment but I’m not sure what, how can I find out?
- You can follow along in the command line while the operator is reconciling, this can be helpful for debugging. Alternatively you can click into the deployment instance to see the status conditions being updated as the deployment goes on.
- Is it still possible to view individual component logs?
- When troubleshooting you should examine the Ansible Automation Platform instance for the main logs and then each individual component (EDA, AutomationHub, AutomationController) for more specific information.
- Where can I view the condition of an instance?
-
To display status conditions click into the instance, and look under the Details or Events tab. Alternatively, to display the status conditions you can run the get command:
oc get automationcontroller <instance-name> -o jsonpath=Pipe "| jq" - Can I track my migration in real time?
-
To help track the status of the migration or to understand why migration might have failed you can look at the migration logs as they are running. Use the logs command:
oc logs fresh-install-controller-migration-4.6.0-jwfm6 -f - I have configured my SAML but authentication fails with this error: "Unable to complete social auth login" What can I do?
-
You must update your Ansible Automation Platform instance to include the
REDIRECT_IS_HTTPSextra setting. See Enabling single sign-on (SSO) for platform gateway on OpenShift Container Platform for help with this.
5.2. Configuring automation controller on Red Hat OpenShift Container Platform web console Copy linkLink copied to clipboard!
You can use these instructions to configure the automation controller operator on Red Hat OpenShift Container Platform, specify custom resources, and deploy Ansible Automation Platform with an external database.
Automation controller configuration can be done through the automation controller extra_settings or directly in the user interface after deployment. However, it is important to note that configurations made in extra_settings take precedence over settings made in the user interface.
When an instance of automation controller is removed, the associated PVCs are not automatically deleted. This can cause issues during migration if the new deployment has the same name as the previous one. Therefore, it is recommended that you manually remove old PVCs before deploying a new automation controller instance in the same namespace. See Finding and deleting PVCs for more information.
5.2.1. Prerequisites Copy linkLink copied to clipboard!
- You have installed the Red Hat Ansible Automation Platform catalog in Operator Hub.
- For automation controller, a default StorageClass must be configured on the cluster for the operator to dynamically create needed PVCs. This is not necessary if an external PostgreSQL database is configured.
- For Hub a StorageClass that supports ReadWriteMany must be available on the cluster to dynamically created the PVC needed for the content, redis and api pods. If it is not the default StorageClass on the cluster, you can specify it when creating your AutomationHub object.
5.2.1.1. Configuring your controller image pull policy Copy linkLink copied to clipboard!
Use this procedure to configure the image pull policy on your automation controller.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Go to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Ansible Automation Platform tab.
- Click the ⋮ icon next to your Ansible Automation Platform instance and select .
-
Click and locate the
spec.controller:section. Configure the image pull policy and resource requirements under the
controller:section:spec: controller: image_pull_policy: IfNotPresent # Options: Always, Never, IfNotPresent image_pull_secrets: - pull-secret-name web_resource_requirements: limits: cpu: 1000m memory: 2Gi requests: cpu: 500m memory: 1Gi task_resource_requirements: limits: cpu: 2000m memory: 4Gi requests: cpu: 1000m memory: 2Gi ee_resource_requirements: limits: cpu: 500m memory: 1Gi requests: cpu: 250m memory: 512Mi redis_resource_requirements: limits: cpu: 500m memory: 1Gi requests: cpu: 250m memory: 512Mi postgres_resource_requirements: limits: cpu: 1000m memory: 2Gi requests: cpu: 500m memory: 1Gi postgres_storage_requirements: limits: storage: 10Gi requests: storage: 8Gi replicas: 1 garbage_collect_secrets: false create_preload_data: trueClick .
NoteThese settings apply to the automation controller component managed by this Ansible Automation Platform instance. If you specified an existing controller under
controller.name, these settings will update that instance.For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
5.2.1.2. Configuring your controller LDAP security Copy linkLink copied to clipboard!
You can configure your LDAP SSL configuration for automation controller through any of the following options:
- The automation controller user interface.
- The platform gateway user interface. See the Configuring LDAP authentication section of the Access management and authentication guide for additional steps.
- The following procedure steps.
Procedure
Create a secret in your Ansible Automation Platform namespace for the
bundle-ca.crtfile (the filename must bebundle-ca.crt):$ oc create secret -n aap generic bundle-ca-secret --from-file=bundle-ca.crtNoteThe target filename for this operation must be
bundle-ca.crtand the secret name should bebundle-ca-secret.Add the
bundle_cacert_secretto the Ansible Automation Platform customer resource:... spec: bundle_cacert_secret: bundle-ca-secret ...Verification
You can verify the expected certificate by running:
oc get deployments -l 'app.kubernetes.io/component=aap-gateway'Followed by:
oc exec -it deployment.apps/<gateway-deployment-name-from-above> -- openssl x509 -in /etc/pki/tls/certs/ca-bundle.crt -noout -text
5.2.1.3. Configure automation controller operator route options Copy linkLink copied to clipboard!
The Red Hat Ansible Automation Platform Operator installation form provides advanced options to configure your automation controller operator route.
You must assign a unique metadata.name to each custom resource (CR) in your namespace. If you assign an AutomationControllerMeshIngress the same name as your Ansible Automation Platform installation, the operator overrides default routes and services. This conflict causes the platform installation to fail.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Ansible Automation Platform tab.
- Click the ⋮ icon next to your Ansible Automation Platform instance and select .
-
Click and locate the
spec.controller:section. Configure the route options under the
controller:section:spec: controller: ingress_type: Route route_host: controller.example.com # Custom hostname for the route route_tls_termination_mechanism: Edge # Options: Edge, Passthrough route_tls_secret: controller-tls-secret # Optional: TLS credential secret projects_persistence: false # Enable/disable persistence for /var/lib/projectsClick .
NoteEdge termination is recommended for most instances. After configuring your route, you can customize additional route settings by adding them to the
controller:section in the Ansible Automation Platform custom resource.For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
5.2.1.4. Configuring the ingress type for your automation controller operator Copy linkLink copied to clipboard!
The Ansible Automation Platform Operator installation form allows you to further configure your automation controller operator ingress under Advanced configuration.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Ansible Automation Platform tab.
- Click the ⋮ icon next to your Ansible Automation Platform instance and select .
-
Click and locate the
spec.controller:section. Configure the ingress options under the
controller:section:spec: controller: ingress_type: Ingress ingress_annotations: | nginx.ingress.kubernetes.io/proxy-body-size: "0" nginx.ingress.kubernetes.io/proxy-connect-timeout: "600" ingress_tls_secret: controller-ingress-tls-secretClick .
NoteThese ingress settings apply to the automation controller component managed by this Ansible Automation Platform instance. The operator automatically updates the ingress configuration for the controller.
For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
Verification
After you have configured your automation controller ingress settings, Red Hat OpenShift Container Platform updates the pods. This may take a few minutes.
You can view the progress by navigating to → and locating the newly created instance.
Verify that the following operator pods provided by the Ansible Automation Platform Operator installation from automation controller are running:
| Operator manager controllers | Automation controller | Automation hub | Event-Driven Ansible (EDA) |
|---|---|---|---|
| The operator manager controllers for each of the three operators, include the following:
| After deploying automation controller, you can see the addition of the following pods:
| After deploying automation hub, you can see the addition of the following pods:
| After deploying EDA, you can see the addition of the following pods:
|
A missing pod can indicate the need for a pull secret. Pull secrets are required for protected or private image registries. See Using image pull secrets for more information. You can diagnose this issue further by running oc describe pod <pod-name> to see if there is an ImagePullBackOff error on that pod.
5.2.2. Configuring an external database for automation controller on Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
For users who prefer to deploy Ansible Automation Platform with an external database, they can do so by configuring a secret with instance credentials and connection information, then applying it to their cluster using the oc create command.
By default, the Ansible Automation Platform Operator automatically creates and configures a managed PostgreSQL pod in the same namespace as your Ansible Automation Platform deployment. You can deploy Ansible Automation Platform with an external database instead of the managed PostgreSQL pod that the Ansible Automation Platform Operator automatically creates.
Using an external database lets you share and reuse resources and manually manage backups, upgrades, and performance optimizations.
The same external database (PostgreSQL instance) can be used for both automation hub, automation controller, and platform gateway as long as the database names are different. In other words, you can have multiple databases with different names inside a single PostgreSQL instance.
The following section outlines the steps to configure an external database for your automation controller on a Ansible Automation Platform Operator.
Prerequisite
The external database must be a PostgreSQL database that is the version supported by the current release of Ansible Automation Platform. The external postgres instance credentials and connection information must be stored in a secret, which is then set on the automation controller spec.
Ansible Automation Platform 2.6 supports PostgreSQL 15 for its managed databases and additionally supports PostgreSQL 15, 16, and 17 for external databases.
If you choose to use an externally managed database with version 16 or 17 you must also rely on external backup and restore processes.
Procedure
Create a
postgres_configuration_secretYAML file, following the template below:apiVersion: v1 kind: Secret metadata: name: external-postgres-configuration namespace: <target_namespace> stringData: host: "<external_ip_or_url_resolvable_by_the_cluster>" port: "<external_port>" database: "<desired_database_name>" username: "<username_to_connect_as>" password: "<password_to_connect_with>" sslmode: "prefer" type: "unmanaged" type: OpaqueWhen configuring the secret:
-
namespace: Specify the namespace to create the secret in. This should be the same namespace you want to deploy to. -
host: Specify the resolvable hostname for your database node. -
port: Specify the external port. The default is5432. -
password: Ensure the password does not contain single or double quotes (', ") or backslashes (\) to avoid any issues during deployment, backup or restoration. -
sslmode: This variable is valid for external databases only. The allowed values are:prefer,disable,allow,require,verify-ca, andverify-full.
-
Apply
external-postgres-configuration-secret.ymlto your cluster using theoc createcommand.$ oc create -f external-postgres-configuration-secret.ymlWhen creating your
AnsibleAutomationPlatformcustom resource object, specify the secret under thecontrollersection in your spec, following the example below:apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: controller: name: controller-dev # Optional: specify existing instance or custom name postgres_configuration_secret: external-postgres-configurationNoteIf you have an existing automation controller instance, specify its name under
controller.nameto apply these settings to the existing instance. If you omit thenamefield, the operator will create a new instance with the default name pattern<aap-instance-name>-controller.For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
5.2.3. Finding and deleting PVCs Copy linkLink copied to clipboard!
A persistent volume claim (PVC) is a storage volume used to store data that automation hub and automation controller applications use. This persistence is a key feature of static provisioning. If you redeploy an instance using the same name, the Operator must bind to these existing PVCs, allowing for data continuity across deployments. If you are confident that you no longer need a PVC, or have backed it up elsewhere, you can manually delete them.
Procedure
List the existing PVCs in your deployment namespace:
oc get pvc -n <namespace>- Identify the PVC associated with your previous deployment by comparing the old deployment name and the PVC name.
Delete the old PVC:
oc delete pvc -n <namespace> <pvc-name>
5.3. Configuring automation hub on Red Hat OpenShift Container Platform web console Copy linkLink copied to clipboard!
You can use these instructions to configure the automation hub operator on Red Hat OpenShift Container Platform, specify custom resources, and deploy Ansible Automation Platform with an external database.
Automation hub configuration can be done through the automation hub pulp_settings or directly in the user interface after deployment. However, it is important to note that configurations made in pulp_settings take precedence over settings made in the user interface. Hub settings should always be set as lowercase on the Hub custom resource specification.
When an instance of automation hub is removed, the PVCs are not automatically deleted. This can cause issues during migration if the new deployment has the same name as the previous one. Therefore, it is recommended that you manually remove old PVCs before deploying a new automation hub instance in the same namespace. See Finding and deleting PVCs for more information.
5.3.1. Prerequisites Copy linkLink copied to clipboard!
- You have installed the Ansible Automation Platform Operator in Operator Hub.
5.3.1.1. Storage options for Ansible Automation Platform Operator installation on Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
Automation hub requires ReadWriteMany file-based storage, Azure Blob storage, or Amazon S3 storage for operation so that multiple pods can access shared content, such as collections.
The process for configuring object storage on the AutomationHub CR is similar for Amazon S3 and Azure Blob Storage.
If you are using file-based storage and your installation scenario includes automation hub, ensure that the storage option for Ansible Automation Platform Operator is set to ReadWriteMany. ReadWriteMany is the default storage option.
In addition, OpenShift Data Foundation provides a ReadWriteMany or S3 implementation. Also, you can set up NFS storage configuration to support ReadWriteMany. This, however, introduces the NFS server as a potential, single point of failure.
5.3.1.1.1. Provisioning OCP storage with ReadWriteMany access mode Copy linkLink copied to clipboard!
To ensure successful installation of Ansible Automation Platform Operator, you must provision your storage type for automation hub initially to ReadWriteMany access mode.
Procedure
- Go to → .
- Click .
In the first step, update the
accessModesfrom the defaultReadWriteOncetoReadWriteMany.- See Provisioning to update the access mode. for a detailed overview.
- Complete the additional steps in this section to create the persistent volume claim (PVC).
5.3.1.1.2. Configuring object storage on Amazon S3 Copy linkLink copied to clipboard!
Red Hat supports Amazon Simple Storage Service (S3) for automation hub. You can configure it when deploying the AnsibleAutomationPlatform custom resource (CR), or you can configure it for an existing instance.
Prerequisites
- Create an Amazon S3 bucket to store the objects.
- Note the name of the S3 bucket.
Procedure
Create a Kubernetes secret containing the AWS credentials and connection details, and the name of your Amazon S3 bucket. The following example creates a secret called
test-s3:$ oc -n $HUB_NAMESPACE apply -f- <<EOF apiVersion: v1 kind: Secret metadata: name: 'test-s3' stringData: s3-access-key-id: $S3_ACCESS_KEY_ID s3-secret-access-key: $S3_SECRET_ACCESS_KEY s3-bucket-name: $S3_BUCKET_NAME s3-region: $S3_REGION EOFAdd the secret to the Ansible Automation Platform custom resource (CR) under the
hubsection in thespec:apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: hub: storage_type: S3 object_storage_s3_secret: test-s3NoteIf you have an existing automation hub instance, specify its name using
hub.name: existing-hub-nameto apply these settings to the existing instance.For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
If you are applying this secret to an existing instance, restart the API pods for the change to take effect.
<hub-name>is the name of your hub instance.$ oc -n $HUB_NAMESPACE delete pod -l app.kubernetes.io/name=<hub-name>-api
5.3.1.1.3. Configuring object storage on Azure Blob Copy linkLink copied to clipboard!
Red Hat supports Azure Blob Storage for automation hub. You can configure it when deploying the AnsibleAutomationPlatform custom resource (CR), or you can configure it for an existing instance.
Prerequisites
- Create an Azure Storage blob container to store the objects.
- Note the name of the blob container.
Procedure
Create a Kubernetes secret containing the credentials and connection details for your Azure account, and the name of your Azure Storage blob container. The following example creates a secret called
test-azure:$ oc -n $HUB_NAMESPACE apply -f- <<EOF apiVersion: v1 kind: Secret metadata: name: 'test-azure' stringData: azure-account-name: $AZURE_ACCOUNT_NAME azure-account-key: $AZURE_ACCOUNT_KEY azure-container: $AZURE_CONTAINER azure-container-path: $AZURE_CONTAINER_PATH azure-connection-string: $AZURE_CONNECTION_STRING EOFAdd the secret to the Ansible Automation Platform custom resource (CR) under the
hubsection in thespec:apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: hub: storage_type: azure object_storage_azure_secret: test-azureNoteIf you have an existing automation hub instance, specify its name using
hub.name: existing-hub-nameto apply these settings to the existing instance.For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
If you are applying this secret to an existing instance, restart the API pods for the change to take effect.
<hub-name>is the name of your hub instance.$ oc -n $HUB_NAMESPACE delete pod -l app.kubernetes.io/name=<hub-name>-api
5.3.1.2. Configure your automation hub operator route options Copy linkLink copied to clipboard!
The Red Hat Ansible Automation Platform operator installation form allows you to further configure your automation hub operator route options under Advanced configuration.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Ansible Automation Platform tab.
- Click the ⋮ icon next to your Ansible Automation Platform instance and select .
-
Click and locate the
spec.hub:section. Configure the route options under the
hub:section:spec: hub: ingress_type: Route route_host: hub.example.com # Custom hostname for the route route_tls_termination_mechanism: Edge # Options: Edge, Passthrough route_tls_secret: hub-tls-secret # Optional: TLS credential secretClick .
NoteEdge termination is recommended for most instances. After configuring your route, you can customize additional route settings by adding them to the
hub:section in the Ansible Automation Platform custom resource.For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
5.3.1.3. Configuring the ingress type for your automation hub operator Copy linkLink copied to clipboard!
The Ansible Automation Platform Operator installation form allows you to further configure your automation hub operator ingress under Advanced configuration.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Ansible Automation Platform tab.
- Click the ⋮ icon next to your Ansible Automation Platform instance and select .
-
Click and locate the
spec.hub:section. Configure the ingress options under the
hub:section:spec: hub: ingress_type: Ingress ingress_annotations: | nginx.ingress.kubernetes.io/proxy-body-size: "0" nginx.ingress.kubernetes.io/proxy-connect-timeout: "600" ingress_tls_secret: hub-ingress-tls-secretClick .
NoteThese ingress settings apply to the automation hub component managed by this Ansible Automation Platform instance. The operator automatically updates the ingress configuration for the hub.
For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
Verification
After you have configured your automation hub ingress settings, Red Hat OpenShift Container Platform updates the pods. This may take a few minutes.
You can view the progress by navigating to → and locating the newly created instance.
Verify that the following operator pods provided by the Ansible Automation Platform Operator installation from automation hub are running:
| Operator manager controllers | Automation controller | Automation hub |
|---|---|---|
| The operator manager controllers for each of the 3 operators, include the following:
| After deploying automation controller, you will see the addition of these pods:
| After deploying automation hub, you will see the addition of these pods:
|
A missing pod can indicate the need for a pull secret. Pull secrets are required for protected or private image registries. See Using image pull secrets for more information. You can diagnose this issue further by running oc describe pod <pod-name> to see if there is an ImagePullBackOff error on that pod.
5.3.2. Finding the automation hub route Copy linkLink copied to clipboard!
You can access the automation hub through the platform gateway or through the following procedure.
Procedure
- Log into Red Hat OpenShift Container Platform.
- Navigate to → .
- Under Location, click on the URL for your automation hub instance.
Verification
The automation hub user interface launches where you can sign in with the administrator credentials specified during the operator configuration process.
If you did not specify an administrator password during configuration, one was automatically created for you. To locate this password, go to your project, select → and open controller-admin-password. From there you can copy the password and paste it into the Automation hub password field.
5.3.3. Configuring an external database for automation hub on Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
For users who prefer to deploy Ansible Automation Platform with an external database, they can do so by configuring a secret with instance credentials and connection information, then applying it to their cluster using the oc create command.
By default, the Ansible Automation Platform Operator automatically creates and configures a managed PostgreSQL pod in the same namespace as your Ansible Automation Platform deployment.
You can choose to use an external database instead if you prefer to use a dedicated node to ensure dedicated resources or to manually manage backups, upgrades, or performance tweaks.
The same external database (PostgreSQL instance) can be used for both automation hub, automation controller, and platform gateway as long as the database names are different. In other words, you can have multiple databases with different names inside a single PostgreSQL instance.
The following section outlines the steps to configure an external database for your automation hub on a Ansible Automation Platform Operator.
Prerequisite
The external database must be a PostgreSQL database that is the version supported by the current release of Ansible Automation Platform. The external postgres instance credentials and connection information will need to be stored in a secret, which will then be set on the automation hub spec.
Ansible Automation Platform 2.6 supports PostgreSQL 15 for its managed databases and additionally supports PostgreSQL 15, 16, and 17 for external databases.
If you choose to use an externally managed database with version 16 or 17 you must also rely on external backup and restore processes.
Procedure
Create a
postgres_configuration_secretYAML file, following the template below:apiVersion: v1 kind: Secret metadata: name: external-postgres-configuration namespace: <target_namespace>1 stringData: host: "<external_ip_or_url_resolvable_by_the_cluster>"2 port: "<external_port>"3 database: "<desired_database_name>" username: "<username_to_connect_as>" password: "<password_to_connect_with>"4 sslmode: "prefer"5 type: "unmanaged" type: Opaque- Namespace to create the secret in. This should be the same namespace you want to deploy to.
- The resolvable hostname for your database node.
-
External port defaults to
5432. -
Value for variable
passwordshould not contain single or double quotes (', ") or backslashes (\) to avoid any issues during deployment, backup or restoration. -
The variable
sslmodeis valid forexternaldatabases only. The allowed values are:prefer,disable,allow,require,verify-ca, andverify-full.
Apply
external-postgres-configuration-secret.ymlto your cluster using theoc createcommand.$ oc create -f external-postgres-configuration-secret.ymlWhen creating your
AnsibleAutomationPlatformcustom resource object, specify the secret under thehubsection in your spec, following the example below:apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: hub: name: hub-dev # Optional: specify existing instance or custom name postgres_configuration_secret: external-postgres-configuration storage_type: file file_storage_storage_class: <your-read-write-many-storage-class> file_storage_size: 10GiNoteIf you have an existing automation hub instance, specify its name under
hub.nameto apply these settings to the existing instance. If you omit thenamefield, the operator will create a new instance with the default name pattern<aap-instance-name>-hub.For more examples of Ansible Automation Platform custom resources, see Appendix: Red Hat Ansible Automation Platform custom resources.
5.3.3.1. Enabling the hstore extension for the automation hub PostgreSQL database Copy linkLink copied to clipboard!
The database migration script uses hstore fields to store information, therefore the hstore extension must be enabled in the automation hub PostgreSQL database.
This process is automatic when using the Ansible Automation Platform installer and a managed PostgreSQL server.
If the PostgreSQL database is external, you must enable the hstore extension in the automation hub PostgreSQL database manually before installation.
If the hstore extension is not enabled before installation, a failure raises during database migration.
Procedure
Check if the extension is available on the PostgreSQL server (automation hub database).
$ psql -d <automation hub database> -c "SELECT * FROM pg_available_extensions WHERE name='hstore'"Where the default value for
<automation hub database>isautomationhub.Example output with
hstoreavailable:name | default_version | installed_version |comment ------+-----------------+-------------------+--------------------------------------------------- hstore | 1.7 | | data type for storing sets of (key, value) pairs (1 row)Example output with
hstorenot available:name | default_version | installed_version | comment ------+-----------------+-------------------+--------- (0 rows)On a RHEL based server, the
hstoreextension is included in thepostgresql-contribRPM package, which is not installed automatically when installing the PostgreSQL server RPM package.To install the RPM package, use the following command:
dnf install postgresql-contribLoad the
hstorePostgreSQL extension into the automation hub database with the following command:$ psql -d <automation hub database> -c "CREATE EXTENSION hstore;"In the following output, the
installed_versionfield lists thehstoreextension used, indicating thathstoreis enabled.name | default_version | installed_version | comment -----+-----------------+-------------------+------------------------------------------------------ hstore | 1.7 | 1.7 | data type for storing sets of (key, value) pairs (1 row)
5.3.4. Finding and deleting PVCs Copy linkLink copied to clipboard!
A persistent volume claim (PVC) is a storage volume used to store data that automation hub and automation controller applications use. This persistence is a key feature of static provisioning. If you redeploy an instance using the same name, the Operator must bind to these existing PVCs, allowing for data continuity across deployments. If you are confident that you no longer need a PVC, or have backed it up elsewhere, you can manually delete them.
Procedure
List the existing PVCs in your deployment namespace:
oc get pvc -n <namespace>- Identify the PVC associated with your previous deployment by comparing the old deployment name and the PVC name.
Delete the old PVC:
oc delete pvc -n <namespace> <pvc-name>
5.3.5. Additional configurations Copy linkLink copied to clipboard!
A collection download count can help you understand collection usage. To add a collection download count to automation hub, set the following configuration:
spec:
pulp_settings:
ansible_collect_download_count: true
When ansible_collect_download_count is enabled, automation hub will display a download count by the collection.
5.3.6. Adding allowed registries to the automation controller image configuration Copy linkLink copied to clipboard!
Before you can deploy a container image in automation hub, you must add the registry to the allowedRegistries in the automation controller image configuration. To do this you can copy and paste the following code into your automation controller image YAML.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select the Resources drop-down list and type "Image".
- Select Image (config,openshift.io/v1).
- Click under the Name heading.
- Select the tab.
Paste in the following under spec value:
spec: registrySources: allowedRegistries: - quay.io - registry.redhat.io - image-registry.openshift-image-registry.svc:5000 - <OCP route for your automation hub>- Click .
5.3.7. Configuring content signing for Ansible Automation Platform Hub Operator Copy linkLink copied to clipboard!
As an automation administrator for your organization, you can configure Ansible Automation Platform Hub Operator for signing and publishing Ansible content collections from different groups within your organization.
For additional security, automation creators can configure Ansible-Galaxy CLI to verify these collections to ensure that they have not been changed after they were uploaded to automation hub.
To successfully sign and publish Ansible Certified Content Collections, you must configure private automation hub for signing.
Prerequisites
-
A GPG key pair. If you do not have one, you can generate one using the
gpg --full-generate-keycommand. - Your public-private key pair has proper access for configuring content signing on Ansible Automation Platform Hub Operator.
Procedure
Create a ConfigMap for signing scripts. The ConfigMap you create contains the scripts used by the signing service for collections and container images.
NoteThis script is used as part of the signing service and must generate an ascii-armored detached
gpgsignature for that file using the key specified through thePULP_SIGNING_KEY_FINGERPRINTenvironment variable.The script prints out a JSON structure with the following format.
{"file": "filename", "signature": "filename.asc"}All the file names are relative paths inside the current working directory. The file name must remain the same for the detached signature.
Example: The following script produces signatures for content:
apiVersion: v1 kind: ConfigMap metadata: name: signing-scripts data: collection_sign.sh: |- #!/usr/bin/env bash FILE_PATH=$1 SIGNATURE_PATH=$1.asc ADMIN_ID="$PULP_SIGNING_KEY_FINGERPRINT" PASSWORD="password" # Create a detached signature gpg --quiet --batch --pinentry-mode loopback --yes --passphrase \ $PASSWORD --homedir /var/lib/pulp/.gnupg --detach-sign --default-key $ADMIN_ID \ --armor --output $SIGNATURE_PATH $FILE_PATH # Check the exit status STATUS=$? if [ $STATUS -eq 0 ]; then echo {\"file\": \"$FILE_PATH\", \"signature\": \"$SIGNATURE_PATH\"} else exit $STATUS fi container_sign.sh: |- #!/usr/bin/env bash # galaxy_container SigningService will pass the next 4 variables to the script. MANIFEST_PATH=$1 FINGERPRINT="$PULP_SIGNING_KEY_FINGERPRINT" IMAGE_REFERENCE="$REFERENCE" SIGNATURE_PATH="$SIG_PATH" # Create container signature using skopeo skopeo standalone-sign \ $MANIFEST_PATH \ $IMAGE_REFERENCE \ $FINGERPRINT \ --output $SIGNATURE_PATH # Optionally pass the passphrase to the key if password protected. # --passphrase-file /path/to/key_password.txt # Check the exit status STATUS=$? if [ $STATUS -eq 0 ]; then echo {\"signature_path\": \"$SIGNATURE_PATH\"} else exit $STATUS fiCreate a secret for your GnuPG private key. This secret securely stores the GnuPG private key you use for signing.
gpg --export --armor <your-gpg-key-id> > signing_service.gpg oc create secret generic signing-galaxy --from-file=signing_service.gpgThe secret must have a key named
signing_service.gpg.Configure the AnsibleAutomationPlatform CR.
apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: aap-hub-signing-sample spec: hub: signing_secret: "signing-galaxy" signing_scripts_configmap: "signing-scripts"
5.4. Configure static storage for Ansible Automation Platform Copy linkLink copied to clipboard!
Configure static storage when your environment does not support dynamic volume provisioning. This process ensures the Ansible Automation Platform Operator adopts manually created Persistent Volume Claims by using specific naming conventions.
5.4.1. Understand static provisioning in the Ansible Automation Platform Operator Copy linkLink copied to clipboard!
By default, the Ansible Automation Platform Operator uses dynamic provisioning to create the required storage for components such as the database and automation hub.
If your environment does not allow dynamic provisioning, you must use static provisioning.
With static provisioning, you manually create Persistent Volumes (PVs) and Persistent Volume Claims (PVCs) before you deploy the AnsibleAutomationPlatform custom resource. When the Operator starts the deployment, it searches the namespace for PVCs that match its internal naming conventions. If a matching PVC exists, the Operator binds to that claim instead of attempting to provision new storage.
Static provisioning also enables data persistence during redeployments. If you delete an AnsibleAutomationPlatform instance, the Operator does not delete the associated PVCs. You can redeploy the instance using the same name to reconnect to the existing data.
5.4.2. Pre-create Persistent Volume Claims for manual provisioning Copy linkLink copied to clipboard!
Follow this process to manually prepare storage for an Ansible Automation Platform installation when dynamic provisioning is disabled.
Prerequisites
-
You have an active OpenShift Container Platform CLI (
oc) session. - You have defined Persistent Volumes (PVs) that meet the minimum size and access mode requirements for your components.
Procedure
-
Identify the name you intend to use for your
AnsibleAutomationPlatformdeployment (for example,myaap). -
Create a PVC manifest for the PostgreSQL database using the required naming convention:
postgres-15-<deployment_name>-0. -
Ensure the
accessModesandresources.requests.storagematch your manually provisioned PV. Apply the PVC manifest:
oc apply -f postgres-pvc.yaml- Repeat these steps for other components, such as automation hub, using the correct naming conventions.
Leave the
storage_classfields empty or omit them from the specification. This forces the Operator to use the pre-created PVCs.NoteUnlike core components, the
AnsibleAutomationPlatformBackupandRestorecustom resources provide abackup_pvcparameter. You must use this parameter to specify your custom PVC name instead of relying on naming conventions.
Verification
Check the status of the PVCs to ensure they are in a
Boundstate:oc get pvc -n <namespace>
5.4.3. PVC naming conventions for Ansible Automation Platform components Copy linkLink copied to clipboard!
The Operator must find PVCs with exact names to adopt them for static provisioning. Replace <instance_name> with the name of your AnsibleAutomationPlatform custom resource.
| Component | Required PVC Name | Default Access Mode |
|---|---|---|
| Ansible Automation Platform Database |
| ReadWriteOnce |
| Automation Hub Storage |
(Required when storage_type is set to file) | ReadWriteMany |
| Automation Hub Redis Persistence |
| ReadWriteOnce |
5.5. Deploying Redis on Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
When you create an Ansible Automation Platform instance through the Ansible Automation Platform Operator, standalone Redis is assigned by default. If you would prefer to deploy clustered Redis, you can use the following procedure.
For more information about Redis, refer to Caching and queueing system in the Planning your installation guide.
Switching Redis modes on an existing instance is not supported and can lead to unexpected consequences, including data loss. To change the Redis mode, you must deploy a new instance.
Prerequisites
- You have installed an Ansible Automation Platform Operator deployment.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Details tab.
On the Ansible Automation Platform tile click .
- For existing instances, you can edit the YAML view by clicking the ⋮ icon and then .
- Change the redis_mode value to "cluster".
- Click , then .
- Click to expand Advanced configuration.
- For the Redis Mode list, select Cluster.
- Configure the rest of your instance as necessary, then click .
Verification
Your instance deploys with a cluster Redis with 6 Redis replicas as default.
You can modify your automation hub default redis cache PVC volume size, for help with this see, Modifying the default redis cache PVC volume size automation hub.
Chapter 6. Deploying the Ansible Lightspeed intelligent assistant on OpenShift Container Platform Copy linkLink copied to clipboard!
As a system administrator, you can deploy Ansible Lightspeed intelligent assistant on Ansible Automation Platform 2.6 on OpenShift Container Platform.
6.1. Overview Copy linkLink copied to clipboard!
You can install and use Ansible Lightspeed intelligent assistant on Ansible Automation Platform 2.6 on OpenShift Container Platform. Ansible Lightspeed intelligent assistant is an intuitive chat interface embedded within the Ansible Automation Platform, using generative artificial intelligence (AI) to answer questions about the Ansible Automation Platform.
The Ansible Lightspeed intelligent assistant interacts with users in their natural language prompts in English, and uses Large Language Models (LLMs) to generate quick, accurate, and personalized responses. These responses empower Ansible users to work more efficiently, thereby improving productivity and the overall quality of their work.
Ansible Lightspeed intelligent assistant requires the following configurations:
- Installation of Ansible Automation Platform 2.6 on Red Hat OpenShift Container Platform
- Deployment of an LLM provider served by either a Red Hat AI platform or a third-party AI platform. To know the LLM providers that you can use, see LLM providers.
Red Hat does not collect any telemetry data from your interactions with the Ansible Lightspeed intelligent assistant.
Upgrading from Ansible Automation Platform 2.5 to 2.6.1 or 2.6 to 2.6.1 enables HTTPS and TLS by default for internal communication between the Ansible Lightspeed API and the Ansible Lightspeed intelligent assistant pod. Following the upgrade to Ansible Automation Platform 2.6.1, the intelligent assistant will be unavailable for approximately 60 seconds while its pod restarts.
6.1.1. Integration with MCP server Copy linkLink copied to clipboard!
Ansible Lightspeed intelligent assistant integration with the Model Context Protocol (MCP) server is available as a Technology Preview release. This integration enhances the user experience by delivering relevant, dynamically sourced data results to your queries.
MCP is an open protocol that standardizes how applications provide context to LLMs. Using the protocol, an MCP server provides a standardized way for an LLM to increase context by requesting and receiving real-time information from external resources. The integration with an MCP server enables the Ansible Lightspeed intelligent assistant to offer an enhanced user experience by delivering relevant, dynamically sourced data results to your queries. You can configure a MCP server in the chatbot configuration secret. For more information, see Creating a chatbot configuration secret.
Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
6.1.2. Ansible Automation Platform 2.6 requirements Copy linkLink copied to clipboard!
- You have installed Ansible Automation Platform 2.6 on your OpenShift Container Platform environment.
- You have administrator privileges for the Ansible Automation Platform.
- You have provisioned an OpenShift cluster with Operator Lifecycle Management installed.
6.1.3. Large Language Model (LLM) provider requirements Copy linkLink copied to clipboard!
You must have configured an LLM provider that you will use before deploying the Ansible Lightspeed intelligent assistant.
An LLM is a type of machine learning model that can interpret and generate human-like language. When an LLM is used with the Ansible Lightspeed intelligent assistant, the LLM can interpret questions accurately and provide helpful answers in a conversational manner.
Ansible Lightspeed intelligent assistant can rely on the following LLM providers:
Red Hat LLM providers:
Red Hat Enterprise Linux AI
You can configure Red Hat Enterprise Linux AI as the LLM provider. As the Red Hat Enterprise Linux is in a different environment than the Ansible Lightspeed deployment, the model deployment must allow access using a secure connection. For more information, see Optional: Allowing access to a model from a secure endpoint.
Ansible Lightspeed intelligent assistant supports vLLM Server. When self-hosting an LLM with Red Hat Enterprise Linux AI, you can use vLLM Server as the inference engine.
Red Hat OpenShift AI
You must deploy an LLM on the Red Hat OpenShift AI single-model serving platform that uses the Virtual Large Language Model (vLLM) runtime. If the model deployment resides in a different OpenShift environment than the Ansible Lightspeed deployment, include a route to expose the model deployment outside the cluster. For more information, see About the single-model serving platform.
Ansible Lightspeed intelligent assistant supports vLLM Server. When self-hosting an LLM with Red Hat OpenShift AI, you can use vLLM Server as the inference engine.
NoteFor configurations with Red Hat Enterprise Linux AI or Red Hat OpenShift AI, you must host your own LLM provider instead of using a SaaS LLM provider.
Red Hat AI Inference Server
You can deploy an LLM using Red Hat AI Inference Server as your inference runtime. Red Hat AI Inference Server supports vLLM runtimes for efficient model serving and can be configured to work with Ansible Lightspeed intelligent assistant. For more information, see Red Hat AI Inference Server documentation.
If the Red Hat AI Inference Server deployment is in a different environment than the Ansible Lightspeed deployment, ensure the model deployment allows access using a secure connection and configure appropriate network routing.
Ansible Lightspeed intelligent assistant supports vLLM Server when self-hosting an LLM with Red Hat AI Inference Server as the inference engine.
Third-party LLM providers:
OpenAI
To use OpenAI with the Ansible Lightspeed intelligent assistant, you need access to the OpenAI API platform.
Microsoft Azure OpenAI
To use Microsoft Azure with the Ansible Lightspeed intelligent assistant, you need access to Microsoft Azure OpenAI product page.
6.1.4. Process for configuring and using the Ansible Lightspeed intelligent assistant Copy linkLink copied to clipboard!
Perform the following tasks to set up and use the Ansible Lightspeed intelligent assistant in your Ansible Automation Platform instance on the OpenShift Container Platform environment:
| Task | Description |
|---|---|
| Deploy the Ansible Lightspeed intelligent assistant on OpenShift Container Platform | An Ansible Automation Platform administrator who wants to deploy the Ansible Lightspeed intelligent assistant for all Ansible users in the organization. Perform the following tasks:
|
| Access and use the Ansible Lightspeed intelligent assistant | All Ansible users who want to use the intelligent assistant to get answers to their questions about the Ansible Automation Platform. For more details, see Using the Ansible Lightspeed intelligent assistant. |
6.2. Deploying the Ansible Lightspeed intelligent assistant Copy linkLink copied to clipboard!
This section provides information about the procedures involved in deploying the Ansible Lightspeed intelligent assistant on OpenShift Container Platform.
6.2.1. Creating a chatbot configuration secret Copy linkLink copied to clipboard!
Create a configuration secret for the Ansible Lightspeed intelligent assistant, so that you can connect the intelligent assistant to the Ansible Automation Platform operator.
Procedure
- Log in to Red Hat OpenShift Container Platform as an administrator.
- Navigate to → .
- From the Projects list, select the namespace that you created when you installed the Ansible Automation Platform operator.
- Click → .
-
In the Secret name field, enter a unique name for the secret. For example,
chatbot-configuration-secret. Add the following keys and their associated values individually:
Expand Key Value Settings for all LLM setups
chatbot_modelEnter the LLM model name that is configured on your LLM setup.
chatbot_urlEnter the inference API base URL on your LLM setup. For example,
https://your_inference_api/v1.chatbot_tokenEnter the API token or the API key. This token is sent along with the authorization header when an inference API is called.
chatbot_llm_provider_typeOptional
Enter the value as per the provider type of your LLM setup:
-
Red Hat Enterprise Linux AI:
rhelai_vllm -
Red Hat OpenShift AI:
rhoai_vllm -
OpenAI:
openai -
Microsoft Azure OpenAI:
azure_openai
chatbot_model_config_extrasOptional
Use this field to pass a JSON dictionary of extra parameters to pass directly to the model provider, for settings not covered by other standard fields.
For example, you can specify a parameter
api_versionfor Microsoft Azure OpenAI in the JSON format'{"api_version": "<your API version>"}'.Additional settings for MCP server configuration
-
aap_gateway_url -
aap_controller_url
Configure a Model Context Protocol (MCP) server that interfaces with the Ansible Lightspeed intelligent assistant.
The values
aap_gateway_urlandaap_controller_urlare internal URLs accessible to the platform gateway and automation controller services on the OpenShift cluster. For example, if the name of your Ansible Automation Platform custom resource ismyaap, these URLs will be:-
aap_gateway_url:http://myaap -
aap_controller_url:http://myaap-controller-service
For MCP server configuration:
- If none of these parameters are configured, no MCP server is provisioned or registered with the underlying LLM’s tool at runtime.
-
If you configure the
aap_gateway_urlparameter only, the Ansible Lightspeed Service MCP server is provisioned. Authentication attempts to use the JSON Web Token (JWT) token associated with the user’s authenticated context. -
If you configure both parameters
aap_gateway_urlandaap_controller_url, the Ansible Lightspeed Service MCP server and Ansible Automation Platform Controller Service MCP server are both configured. Authentication attempts to use the JWT token associated with the user’s authenticated context.
-
Red Hat Enterprise Linux AI:
- Click Create. The chatbot authorization secret is successfully created.
6.2.2. Updating the YAML file of the Ansible Automation Platform operator Copy linkLink copied to clipboard!
After you create the chatbot authorization secret, you must update the YAML file of the Ansible Automation Platform operator to use the secret.
Procedure
- Log in to Red Hat OpenShift Container Platform as an administrator.
- Navigate to → .
- From the list of installed operators, select the Ansible Automation Platform operator.
- Locate and select the Ansible Automation Platform custom resource, and then click the required app.
- Select the YAML tab.
Scroll the text to find the
spec:section, and add the following details under thespec:section:spec: lightspeed: disabled: false chatbot_config_secret_name: <name of your chatbot configuration secret>Click Save. The Ansible Lightspeed intelligent assistant service takes a few minutes to set up.
NoteUpgrading from Ansible Automation Platform 2.5 to 2.6.1 enables HTTPS and enables TLS by default for internal communication between the Ansible Lightspeed API and the Ansible Lightspeed intelligent assistant pod. Following the upgrade to Ansible Automation Platform 2.6.1, the intelligent assistant will be unavailable for approximately 60 seconds while its pod restarts.
Verification
Verify that the chat interface service is running successfully:
- Navigate to → .
Filter with the term api and ensure that the following APIs are displayed in Running status:
-
myaap-lightspeed-api-<version number> -
myaap-lightspeed-chatbot-api-<version number>
-
Verify the MCP server configuration if you specified either
aap_gateway_urloraap_controller_urlparameter:Open the
lightspeed-chatbot-apipod and click the Containers section.-
If the
ansible-mcp-lightspeedcontainer is displayed, the Ansible Lightspeed MCP server is running. -
If the
ansible-mcp-controllercontainer is displayed, the Ansible Automation Platform Controller Service MCP server is running.
-
If the
Verify that the chat interface is displayed on the Ansible Automation Platform:
Access the Ansible Automation Platform:
- Navigate to → .
- From the list of installed operators, click Ansible Automation Platform.
- Locate and select the Ansible Automation Platform custom resource, and then click the app that you created.
From the Details tab, record the information available in the following fields:
- URL: This is the URL of your Ansible Automation Platform instance.
- Gateway Admin User: This is the username to log into your Ansible Automation Platform instance.
- Gateway Admin password: This is the password to log into your Ansible Automation Platform instance.
- Log in to the Ansible Automation Platform using the URL, username, and password that you recorded earlier.
Access the Ansible Lightspeed intelligent assistant:
-
Click the Ansible Lightspeed intelligent assistant icon
that is displayed at the top right corner of the taskbar.
Verify that the chat interface is displayed, as shown in the following image:
.
-
Click the Ansible Lightspeed intelligent assistant icon
6.2.3. Changing your LLM model Copy linkLink copied to clipboard!
If you have already deployed Ansible Lightspeed intelligent assistant but want to change your LLM model, you can create a new chatbot configuration secret for the new LLM model.
Alternatively, if you want to use the same chatbot configuration secret, you must delete and redeploy the Ansible Lightspeed intelligent assistant.
Procedure
To create and use a new chatbot configuration secret:
- Create a new chatbot configuration secret with a different name for the new LLM model.
Update the YAML file of the Ansible Automation Platform operator with the new chatbot configuration secret name.
The Ansible Automation Platform operator detects the new configuration and redeploys the Ansible Lightspeed intelligent assistant.
Verify that the chat interface service is running successfully. See the verification steps mentioned in the topic Update the YAML file of the Ansible Automation Platform operator.
ImportantDo not update the existing chatbot configuration secret with the new LLM model, as the reconciliation logic does not check the updates made to the secret.
To use the same chatbot secret by deleting and redeploying the Ansible Lightspeed intelligent assistant:
Disable the Ansible Lightspeed operator instance:
- Navigate to → .
- From the list of installed operators, select Ansible Automation Platform.
- Locate and select the Ansible Automation Platform custom resource.
-
Select the YAML tab and under the
spec:section forlightspeedcategory, specifydisabled:true. - Click Save.
Delete the Ansible Lightspeed operator instance:
- Navigate to → .
- From the list of installed operators, select Ansible Lightspeed and delete the operator.
Re-enable the Ansible Automation Platform instance:
- Navigate to → .
- From the list of installed operators, select Ansible Automation Platform.
- Locate and select the Ansible Automation Platform custom resource.
-
Select the YAML tab and under the
spec:section forlightspeedcategory, specifydisabled:false. - Click Save.
6.2.4. Using the Ansible Lightspeed intelligent assistant Copy linkLink copied to clipboard!
After you deploy the Ansible Lightspeed intelligent assistant, all Ansible users within the organization can access and use the chat interface to ask questions and receive information about the Ansible Automation Platform.
6.2.4.1. Accessing the Ansible Lightspeed intelligent assistant Copy linkLink copied to clipboard!
- Log in to the Ansible Automation Platform.
Click the Ansible Lightspeed intelligent assistant icon
that is displayed at the top right corner of the taskbar.
The Ansible Lightspeed intelligent assistant window opens with a welcome message, as shown in the following image:
6.2.4.2. Using the Ansible Lightspeed intelligent assistant Copy linkLink copied to clipboard!
You can perform the following tasks:
Ask questions in the prompt field and get answers about the Ansible Automation Platform
NoteIf you are using an IBM Granite 3.3 series AI model, you might experience a delay of about one minute when waiting for a chat response. To resolve this error, restart the chat session.
- View the chat history of all conversations in a chat session.
- Search the chat history using a user prompt or answer. The chat history is deleted when you close an existing chat session or log out from the Ansible Automation Platform.
- Restore an earlier chat by clicking the relevant entry from the chat history.
- Give feedback on the quality of the chat answers, by clicking the Thumbs up or Thumbs down icon.
- Copy and record the answers by clicking the Copy icon.
-
Change the mode of the virtual assistant to dark or light mode, by clicking the Sun icon
from the top right corner of the toolbar.
- Clear the context of an existing chat by using the New chat button in the chat history.
- Close the chat interface while working on the Ansible Automation Platform.
Chapter 7. Deploying Ansible MCP server on Ansible Automation Platform Copy linkLink copied to clipboard!
As an organization administrator, you can deploy an Ansible Model Context Protocol (MCP) server on an operator-based installation or container-based installation of Ansible Automation Platform 2.6. This functionality is available as a Technology Preview release.
7.1. Overview Copy linkLink copied to clipboard!
Model Context Protocol (MCP) is an open standard that enables AI models to use external AI tools and services via a unified interface. Using the Ansible MCP server, you can connect your Ansible Automation Platform with your preferred external AI tool (such as Claude, Cursor, or ChatGPT). The AI tools can access key information about your Ansible Automation Platform environment and perform tasks. Ansible users can query information, execute workflows, and perform automation tasks using natural language prompts directly within their preferred AI tool.
Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
7.1.1. Benefits Copy linkLink copied to clipboard!
The following are the benefits of the Ansible MCP server:
For external AI tools:
- Provides a standardized interface for securely querying infrastructure data and executing automation workflows within the Ansible Automation Platform.
- Enables agentic workflows to interact with the Ansible Automation Platform.
For Ansible users:
- Provides the ability to use the chatbot interface of their preferred external AI tool to get information about their Ansible Automation Platform environment, and run automation jobs directly through that tool.
For developers:
- Reduces the time and complexity of developing or integrating the Ansible Automation Platform with AI applications or agents.
- Simplifies AI integration, enabling existing automation through Ansible Automation Platform to be exposed to AI tools without writing custom API code or middleware.
7.1.2. Workflow Copy linkLink copied to clipboard!
The standalone Ansible MCP server functions as a secure link between your external AI clients and the Ansible Automation Platform. The AI agent accesses underlying infrastructure only when the Ansible MCP server has appropriate permissions.
The following describes the workflow:
- AI client (The requester): The user initiates a request through their external AI agent (for example, Cursor or Claude) using natural-language prompts.
- The AI model (The translator): The AI agent receives the request, interprets the intent, and maps it to the appropriate exposed Ansible toolset. It then sends a structured toolset call with the necessary parameters.
- Ansible MCP server (The gatekeeper): Upon receiving the call, the Ansible MCP server validates the request. It uses the user’s API token to authenticate with the automation controller.
- Ansible controller (The executor): The automation controller accepts the validated command from the MCP server and triggers the appropriate automation job.
- Response loop: The automation result is returned to the Ansible MCP server, standardized into a format the AI agent can process, and displayed to the user via the AI client.
Both the Ansible MCP server and the Ansible Automation Platform UI access the Ansible Automation Platform API. However, because the AI tool processes the API output before displaying it in its chat interface, you might observe different results when comparing the output from the AI tool with the Ansible Automation Platform UI.
7.1.3. Ansible MCP server toolsets Copy linkLink copied to clipboard!
The Ansible MCP server provides a pre-configured suite of toolsets that effectively act as a bridge between your preferred AI agent and the Ansible Automation Platform. Once configured, these toolsets enable your AI agent to perform specific, authorized actions without requiring you to leave the chat interface.
The Ansible MCP server turns your AI agent from a passive assistant into an active operator that can interact with your Ansible Automation Platform infrastructure and execute workflows or automate tasks based on the permissions you define.
The following toolsets are available in this Technology Preview release:
| Toolset | Description | Usage examples |
|---|---|---|
| Job management | Tools to list available job templates, launch automation jobs, and monitor their real-time status. | Operators can:
|
| Inventory management | Tools to query your inventory for host details, check group membership, and verify system facts. | Operators can:
|
| System monitoring | Tools to retrieve job logs, troubleshoot failed tasks, and check the health of your automation environment. | Administrators can:
|
| User management | Tools to allow the AI agent to administer access and organizational structure within the Ansible Automation Platform. | Administrators can:
|
| Security/compliance | Tools that enable the AI agent to act as a security operator, managing sensitive credentials and verifying platform integrity without exposing raw secrets. | Operators can:
Administrators can:
|
| Platform configuration | Tools that enable organization administrators and developers to inspect and tune the Ansible Automation Platform infrastructure itself. | Administrators can:
Developers can:
|
7.1.4. Server-level and user-level permissions Copy linkLink copied to clipboard!
The Ansible MCP server employs a dual-layer security model to ensure safe integration between AI tools and your Ansible Automation Platform infrastructure. This approach combines a global administrative safeguard with the granular Role-Based Access Control (RBAC) of the Ansible Automation Platform.
You can grant the following access types to the Ansible MCP server:
Server-level permissions: Organization administrators assign a global-level permission while deploying the Ansible MCP server. Administrators can choose one of the following access levels:
- Read-only access: The default setting that enforces a strict "look but do not touch" policy. The AI agent can retrieve system data, such as logs and inventory, but the agent cannot launch jobs or modify configurations. This global safeguard overrides all individual user permissions to prevent unintended automation.
- Read-write access: This setting authorizes the AI agent to make changes in your Ansible Automation Platform, such as executing job templates, managing resources, and applying infrastructure changes. However, these actions are subject to the specific RBAC permissions of the user-provided API token.
User-level permissions: The AI agent’s specific capabilities are inherited from the user account that generated the authentication API token.
- Inherited permissions: The AI tool inherits the user’s permissions and performs only the actions the user is authorized to perform. For example, if the user’s token only has permissions to view the "network" inventory, the AI tool cannot access or modify the "database" inventory even if the user requests it.
- Rejection of unauthorized actions: If the AI tool attempts an action (like launching a job) that the user’s token is not authorized to perform, the Ansible Automation Platform API rejects the request.
Enabling read-write access for the Ansible MCP server grants the AI agent autonomy to directly make changes in your Ansible Automation Platform environment, for example, executing automation jobs. The AI agent can directly make changes in your Ansible Automation Platform environment only if the user has write permissions. Large Language Models (LLMs) can occasionally misinterpret prompts or hallucinate commands. Therefore, enabling read-write access may introduce a risk of unintended changes to your environment.
7.1.5. Telemetry data collection for Ansible MCP server Copy linkLink copied to clipboard!
Red Hat collects anonymized telemetry data from the Ansible MCP server. The telemetry data includes metrics related to MCP server performance, adoption trends, and usage patterns.
Telemetry data will be automatically collected for Ansible MCP server deployments using Ansible Automation Platform patch release on 21 January 2026 and later versions. Red Hat will use this data to monitor the operational health of your MCP servers and to ensure the long-term scalability of the MCP ecosystem.
Telemetry data collection cannot be disabled, but strict user privacy is maintained. Red Hat does not collect users' personal information, such as usernames or passwords. If any personal information is inadvertently received, the data is deleted. Refer to the Red Hat Privacy Statement for more information about Red Hat’s privacy practices.
7.1.6. Prerequisites Copy linkLink copied to clipboard!
- Platform version: An instance of Ansible Automation Platform 2.6 or later.
Deployment environment:
- OpenShift: Access to an OpenShift cluster with permissions to install operators.
- Containerized: A supported container runtime.
- Access credentials: A valid user or service account within Ansible Automation Platform with permissions to execute the desired automation jobs. You will need to generate an API token for this account.
7.1.7. Process Copy linkLink copied to clipboard!
Perform the following tasks to deploy and configure an Ansible MCP server and integrate it with your preferred AI tool:
| Step number | Task | Description |
|---|---|---|
| 1 | Deploy and configure an Ansible MCP server on operator-based installation. | An organization administrator deploys and configures the Ansible MCP server on an operator-based installation of Ansible Automation Platform 2.6. |
| 2 | An Ansible user creates an API token for their Ansible Automation Platform instance and uses it to connect to their preferred AI tool. The AI tools will inherit the user’s permissions for authentication using the API token. | |
| 3 | The Ansible user then configures an external AI tool with the Ansible MCP server’s API token, enabling the AI tool to connect to the Ansible MCP server and execute workflows and automate tasks. |
7.2. Deploying an Ansible MCP server on an operator-based installation Copy linkLink copied to clipboard!
As an organization administrator, you can deploy and configure an Ansible MCP server on an operator-based installation of Ansible Automation Platform 2.6. Use the following procedure to deploy and configure the Ansible MCP server.
Prerequisites
- You have a valid Ansible Automation Platform 2.6 subscription.
Procedure
- Log in to Red Hat OpenShift Container Platform as an administrator.
- Navigate to the namespace where you want to install the MCP server.
- Select → .
- From the list of installed operators, select Ansible Automation Platform.
- In the Ansible Automation Platform tile, click Create instance.
-
From the Configure via field, select the Form view, then provide the instance name. For example,
aap-mcp. Select the YAML view, and under the
spec:section, add themcpcomponent:spec: mcp: disabled: false allow_write_operations: falseImportantUse the
allow_write_operationsvariable to configure the operational access level of the Ansible MCP server:-
Read-only access: Set the variable to
falseto restrict the AI agent to viewing data only. In this mode, the AI tool can query job statuses and logs, but cannot trigger new automation in the Ansible Automation Platform. The MCP server is set to read-only mode by default. -
Read-write access: Set the variable to
trueto allow the AI agent to make changes in Ansible Automation Platform, such as executing jobs or modifying the system state.
-
Read-only access: Set the variable to
- Click Create. The Ansible MCP server is created.
Verification
- Navigate to → .
-
Check that the deployment you created is listed there. For example:
aap-mcp. - Check one of the pod’s logs and verify there are no errors.
7.3. Creating an API token for the Ansible MCP server Copy linkLink copied to clipboard!
Create an API token for your Ansible Automation Platform instance, so you can use it to connect with your preferred AI agent. The AI tool will inherit the user’s permissions for API token-based authentication.
Prerequisites
- Your organization administrator has deployed an Ansible MCP server.
Procedure
- From the navigation panel, select → .
- Select the username for your user profile to configure OAuth 2 tokens.
- Select the Tokens tab. When no tokens are present, the Tokens screen prompts you to add them.
Click Create token, and provide the following details:
Application: Enter the name of the application with which you want to associate your token. Alternatively, you can search for it by clicking Browse. This opens a separate window that enables you to choose from the available options. Select Name from the filter list to filter by name if the list is extensive.
NoteTo create a Personal Access Token (PAT) that is not linked to any application, leave the Application field blank.
- Description: (Optional) Provide a short description for your token.
Scope: (Required) Specify the level of access you want this token to have. The scope of an OAuth 2 token can be set as one of the following:
- Write: Allows requests sent with this token to add, edit, and delete resources in the system.
- Read: Limits actions to read only. The write scope includes the read scope.
- Click Create token. The token information is displayed.
On the token information page that appears, click the Copy icon and save the token for future use.
ImportantThis will be the only time the token is displayed. Therefore, ensure that you save the token for future use.
Verification
You can verify that the application now shows the user with the appropriate token by selecting the Tokens tab on the Application Details page:
- From the navigation panel, select → .
- Select the application you want to verify from the Applications list view.
Select the Tokens tab.
Your token should be displayed in the list of tokens associated with the application you chose.
7.4. Connecting an AI agent to the Ansible MCP server Copy linkLink copied to clipboard!
Use the API token of the Ansible MCP server to connect it with your preferred AI agent, such as Claude, Cursor, or ChatGPT.
Prerequisites
- An Ansible MCP server is deployed on your Ansible Automation Platform 2.6 environment.
- An API token is created for your Ansible MCP server.
Procedure
- Go to the AI tool that you want to connect to the Ansible Automation Platform.
Follow your AI client’s instructions to configure the MCP server settings.
Typically, you must specify the MCP server configurations in the
mcp.jsonfile.When configuring the
mcp.jsonfile, add the Ansible MCP server URL in the following format:<Ansible MCP server URL>/<toolset>/mcpKey:
Ansible MCP server URL = The URL of the Ansible MCP server. For example,
https://api.example.com/.To obtain the Ansible MCP server URL, contact your organization administrator.
-
Toolset = The toolset that you want to connect to. For example,
job_management,inventory_management,system_monitoring,user_management,security_compliance, andplatform_configuration. Token = The API token of the Ansible MCP server.
Use the following format to add details about your Ansible MCP server in the
mcp.jsonfile:"mcpServers": { "aap-mcp-job-management": { "type": "http", "url": "https://api.example.com/job_management/mcp", "headers": { "Authorization": "Bearer ${env:MY_SERVICE_TOKEN}" } }, "aap-mcp-inventory-management": { "type": "http", "url": "https://api.example.com/inventory_management/mcp", "headers": { "Authorization": "Bearer ${env:MY_SERVICE_TOKEN}" } }, "aap-mcp-system-monitoring": { "type": "http", "url": "https://api.example.com/system_monitoring/mcp", "headers": { "Authorization": "Bearer ${env:MY_SERVICE_TOKEN}" } }, "aap-mcp-user-management": { "type": "http", "url": "https://api.example.com/user_management/mcp", "headers": { "Authorization": "Bearer ${env:MY_SERVICE_TOKEN}" } }, "aap-mcp-security-compliance": { "type": "http", "url": "https://api.example.com/security_compliance/mcp", "headers": { "Authorization": "Bearer ${env:MY_SERVICE_TOKEN}" } }, "aap-mcp-platform-configuration": { "type": "http", "url": "https://api.example.com/platform_configuration/mcp", "headers": { "Authorization": "Bearer ${env:MY_SERVICE_TOKEN}" } } },ImportantUse a concise MCP server name, ideally limited to 20 characters. This is because AI agents combine the MCP server name with the tool name to create a unique identifier, and most AI agents enforce a 64-character limit on this combined identifier.
Verification
Verify that the AI tool successfully connects to the Ansible Automation Platform MCP server using the API token.
In your AI agent’s chat window, enter a prompt like
What MCP tools are available for my Ansible Automation Platform?. The AI agent should return a response with a list of tools that are enabled for the Ansible Automation Platform MCP server.
7.5. Changing the permissions of the Ansible MCP server post deployment Copy linkLink copied to clipboard!
If you changed the permissions of the Ansible MCP server after it was created and deployed, you must delete the AnsibleMCPServer custom resource and recreate it.
Prerequisites
- You have a deployed an Ansible MCP server on an operator-based installation of Ansible Automation Platform.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Go to the resources tab under → , and then select AnsibleMCPServer details.
- Under Resources, search for the AnsibleMCPServer custom resource.
-
Select the active AnsibleMCPServer instance. An active AnsibleMCPServer instance is identified by the
-mcpsuffix appended to the Ansible Automation Platform custom resource name. Select the Settings menu on the right side of the instance, and then click Delete AnsibleMCPServer.
After the reconciliation process completes, the existing MCP server instance is deleted, and a new Ansible MCP server instance is created.
Verification
- Navigate to → .
-
Check that the deployment you created is listed there. For example:
aap-mcp. - Check one of the pod’s logs and verify there are no errors.
7.6. Troubleshooting Ansible MCP server errors Copy linkLink copied to clipboard!
This section contains information to help you diagnose and resolve issues with deploying the Ansible MCP server and connecting it to an external AI agent.
7.6.1. API output format rejected with 406 Status Code Copy linkLink copied to clipboard!
Issue: Ansible Automation Platform rejects an API request (for example, retrieving job stdout) with an HTTP 406 status code if the MCP server’s requested output is not in JSON format.
Workaround: To obtain the output in a specific format, instruct your AI tool to use JSON format first. You can then transform the JSON output into your desired format.
7.6.2. User requests rejected with 400 status code Copy linkLink copied to clipboard!
Issue: The Ansible MCP server may reject user requests from the external AI tool with 400 Bad Request status code. This error is encountered when the Ansible Automation Platform uses a self-signed certificate.
Workaround: Configure the Ansible MCP server to ignore certificate errors using the following steps:
-
For container-based installation: Set the value of variable
mcp_ignore_certificate_errorstotrue. For operator-based installation:
Add the
IGNORE_CERTIFICATE_ERRORSsetting to themcp:section of AnsibleAutomationPlatform custom resource in the following format:spec: mcp: extra_settings: - setting: IGNORE_CERTIFICATE_ERRORS value: true
7.6.3. Ansible MCP server permissions are changed post deployment Copy linkLink copied to clipboard!
Issue: If you changed the permissions of the Ansible MCP server after it was created and deployed, you must delete the AnsibleMCPServer custom resource and recreate it.
Workaround: Perform the following steps:
- Navigate to the Ansible Automation Platform portal.
- Under Resources, search for the AnsibleMCPServer custom resource.
-
Select the active AnsibleMCPServer instance. An active AnsibleMCPServer instance is identified by the
-mcpsuffix appended to the Ansible Automation Platform custom resource name. - Select the Settings menu (3-dot menu icon) on the right side of the instance, then click Delete AnsibleMCPServer.
- After the reconciliation process is completed, the existing Ansible MCP server instance is deleted and a new Ansible MCP server instance is created.
Chapter 8. Scaling down Red Hat Ansible Automation Platform Operator deployments Copy linkLink copied to clipboard!
You can scale down all Ansible Automation Platform deployments and StatefulSets by using the idle_aap variable. This is useful for scenarios such as upgrades, migrations, or disaster recovery.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Go to → .
- Select your Ansible Automation Platform Operator deployment.
- Select All Instances and go to your AnsibleAutomationPlatform instance.
- Click the ⋮ icon and then select .
In the YAML view paste the following YAML code under the
spec:section:idle_aap: true- Click .
Next steps
Setting the idle_aap value to true scales down all active deployments. Setting the value to false scales the deployments back up.
Chapter 9. Migrating Red Hat Ansible Automation Platform to Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
Migrating your Red Hat Ansible Automation Platform deployment to the Ansible Automation Platform Operator allows you to take advantage of the benefits provided by a Kubernetes native operator, including simplified upgrades and full lifecycle support for your Red Hat Ansible Automation Platform deployments.
You can use the Ansible Automation Platform migration guide for help with migrating.
Upgrades of Event-Driven Ansible version 2.4 to 2.6 are not supported. Database migrations between Event-Driven Ansible 2.4 and Event-Driven Ansible 2.6 are not compatible.
Chapter 10. Upgrading Red Hat Ansible Automation Platform Operator on Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
The Ansible Automation Platform Operator simplifies the installation, upgrade, and deployment of new Red Hat Ansible Automation Platform instances in your OpenShift Container Platform environment.
10.1. Overview Copy linkLink copied to clipboard!
You can use this document for help with upgrading Ansible Automation Platform versions 2.4 and 2.5 to 2.6 on Red Hat OpenShift Container Platform. This document applies to upgrades of Ansible Automation Platform 2.6 to later versions of 2.6.
The Ansible Automation Platform Operator manages deployments, upgrades, backups, and restores of automation controller and automation hub. It also handles deployments of AnsibleJob and JobTemplate resources from the Ansible Automation Platform Resource Operator.
Each operator version has default automation controller and automation hub versions. When the operator is upgraded, it also upgrades the automation controller and automation hub deployments it manages, unless overridden in the spec.
OpenShift deployments of Ansible Automation Platform use the built-in Operator Lifecycle Management (OLM) functionality. For more information, see Operator Lifecycle Manager concepts and resources. OpenShift does this by using Subscription, CSV, InstallPlan, and OperatorGroup objects. Most users will not have to interact directly with these resources. They are created when the Ansible Automation Platform Operator is installed from OperatorHub and managed through the Subscriptions tab in the OpenShift console UI. For more information, refer to Accessing the web console.
10.2. Upgrade considerations Copy linkLink copied to clipboard!
If you are upgrading from version 2.4, continue to the Upgrading the Ansible Automation Platform Operator.
If your OpenShift Container Platform version is not supported by the Red Hat Ansible Automation Platform version you are upgrading to, you must upgrade your OpenShift Container Platform cluster to a supported version first.
Refer to the Red Hat Ansible Automation Platform Life Cycle to determine the OpenShift Container Platform version needed.
For information about upgrading your cluster, refer to Updating clusters.
10.3. Prerequisites Copy linkLink copied to clipboard!
To upgrade to a newer version of Ansible Automation Platform Operator, you must:
- Ensure your system meets the system requirements detailed in the Operator topologies section of the Tested deployment models guide.
- Create AutomationControllerBackup and AutomationHubBackup objects. For help with this see Backup and recovery for operator environments
- Review the Release notes for the new Ansible Automation Platform version to which you are upgrading and any intermediate versions.
- Determine the type of upgrade you want to perform. See the Channel Upgrades section for more information.
10.4. Channel upgrades Copy linkLink copied to clipboard!
Upgrading to version 2.6 from Ansible Automation Platform 2.4 involves retrieving updates from a “channel”. A channel refers to a location where you can access your update. It currently resides in the OpenShift console UI.
10.4.1. In-channel upgrades Copy linkLink copied to clipboard!
Most upgrades occur within a channel as follows:
- A new update becomes available in the marketplace, through the redhat-operator CatalogSource.
The system automatically creates a new InstallPlan for your Ansible Automation Platform subscription.
- If set to Manual, the InstallPlan needs manual approval in the OpenShift UI.
If set to Automatic, it upgrades as soon as the new version is available.
NoteSet a manual install strategy on your Ansible Automation Platform Operator subscription during installation or upgrade. You will be prompted to approve upgrades when available in your chosen update channel. Stable channels, like stable-2.5, are available for each X.Y release.
- A new subscription, CSV, and operator containers are created alongside the old ones. The old resources are cleaned up after a successful install.
10.4.2. Cross-channel upgrades Copy linkLink copied to clipboard!
Upgrading between X.Y channels is always manual and intentional. Stable channels for major and minor versions are in the Operator Catalog. Currently, only version 2.x is available, so there are few channels. It is recommended to stay on the latest minor version channel for the latest patches.
If the subscription is set for manual upgrades, you must approve the upgrade in the UI. Then, the system upgrades the Operator to the latest version in that channel.
It is recommended to set a manual install strategy on your Ansible Automation Platform Operator subscription during installation or upgrade. You will be prompted to approve upgrades when they become available in your chosen update channel. Stable channels, such as stable-2.5, are available for each X.Y release.
The containers provided in the latest channel are updated regularly for OS upgrades and critical fixes. This allows customers to receive critical patches and CVE fixes faster. Larger changes and new features are saved for minor and major releases.
For each major or minor version channel, there is a corresponding "cluster-scoped" channel available. Cluster-scoped channels deploy operators that can manage all namespaces, while non-cluster-scoped channels can only manage resources in their own namespace.
Cluster-scoped bundles are not compatible with namespace-scoped bundles. Do not try to switch between normal (stable-2.6 for example) channels and cluster-scoped (stable-2.6-cluster-scoped) channels, as this is not supported.
10.5. Upgrading the Ansible Automation Platform Operator Copy linkLink copied to clipboard!
To upgrade to the latest version of Ansible Automation Platform Operator on OpenShift Container Platform, you can use the following procedure:
If you are on version 2.4, it is recommended to skip 2.5 and upgrade straight to version 2.6.
If you upgraded from 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.
Prerequisites
- Read the Release notes for 2.6
- For existing deployments only: You must deploy your automation controller and automation hub instances to the same, single namespace before upgrading to 2.6. For more information see, Migrating from one namespace to another.
Review the Backup and recovery for operator environments guide and backup your services:
- AutomationControllerBackup
- AutomationHubBackup
- EDABackup
Upgrading from Event-Driven Ansible 2.4 is not supported. If you are using Event-Driven Ansible 2.4 in production, contact Red Hat before you upgrade.
Procedure
- Log in to OpenShift Container Platform.
- Navigate to → .
- Select the Ansible Automation Platform Operator installed on your project namespace.
- Select the Subscriptions tab.
Change the channel:
- To upgrade from version 2.4, change the channel to stable-2.6.
- To upgrade from version 2.5, change the channel to stable-2.6.
- This creates an InstallPlan for the user. Click .
- Click .
- Create a Custom Resource (CR) using the Ansible Automation Platform UI. The automation controller and automation hub UIs remain until all SSO configuration is supported in the platform gateway UI.
Verification
You can confirm you have upgraded successfully by navigating to → , here under Ansible Automation Platform you can see the version number, begins with 2.6.x.
Additionally, go to your Ansible Automation Platform Operator deployment and click to verify if all instances upgraded correctly. All pods should display either a Running or Completed status, with no pods displaying an error status.
10.6. Creating Ansible Automation Platform custom resources Copy linkLink copied to clipboard!
After upgrading to the latest version of Ansible Automation Platform Operator on OpenShift Container Platform, you can create an Ansible Automation Platform custom resource (CR) that specifies the names of your existing deployments, in the same namespace.
The following example outlines the steps to deploy a new Event-Driven Ansible setup after upgrading to the latest version, with existing automation controller and automation hub deployments already in place.
The Appendix contains more examples of Ansible Automation Platform CRs for different deployments.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Select your Ansible Automation Platform Operator deployment.
- Select the Details tab.
- On the Ansible Automation Platform tile click .
- From the Create Ansible Automation Platform page enter a name for your instance in the Name field.
Click and paste the following YAML (aap-existing-controller-and-hub-new-eda.yml):
--- apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: # Development purposes only no_log: false controller: name: existing-controller #obtain name from controller CR disabled: false eda: disabled: false hub: name: existing-hub disabled: falseClick .
NoteYou can override the operator’s default image for automation controller, automation hub, or platform-resource app images by specifying the preferred image on the YAML spec. This enables upgrading a specific deployment, like a controller, without updating the operator.
The recommended approach however, is to upgrade the operator and use the default image values.
Verification
Navigate to your Ansible Automation Platform Operator deployment and click to verify whether all instances have deployed correctly. You should see the Ansible Automation Platform instance and the deployed AutomationController, EDA, and AutomationHub instances here.
Alternatively, you can verify whether all instances deployed correctly by running oc get route in the command line.
10.7. Upgrading an external database for platform gateway on Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
To upgrade from Ansible Automation Platform 2.4 to 2.6 with an external database, you must scale down your Operator deployment, upgrade your PostgreSQL, then scale your deployment back up.
Prerequisites
- A 2.4 automation controller and automation hub deployment with an external PostgreSQL 13 database
- A newly provisioned PostgreSQL 15 database for the new platform gateway component
Procedure
Create a secret
postgres-config-gatewaywith PostgreSQL 15 credentials for the platform gateway component. For example:apiVersion: v1 kind: Secret metadata: name: postgres-config-gateway namespace: aap stringData: host: "<DB_HOST_OR_IP>" port: "<DB_PORT>" # default is 5432 database: "<DB_NAME>" # for example "gateway" username: "<DB_USER>" # for example "gateway" password: "<DB_PASSWORD>" sslmode: "prefer" type: "unmanaged" type: OpaqueAdd your newly created secret to your Ansible Automation Platform instance:
spec: postgres_configuration_secret: postgres-config-gatewayScale down your deployments in their respective namespaces using:
oc scale deployment --replicas=0 -n <component-namespace> <component-deployment>Automation controller:
-
automation-controller-operator-controller-manager -
<controller-name>-controller-task -
<controller-name>-controller-web
-
Automation hub:
-
automation-hub-operator-controller-manager -
<hub-name>-hub-api -
<hub-name>-hub-content -
<hub-name>-hub-redis -
<hub-name>-hub-worker
-
The remaining operators:
-
ansible-lightspeed-operator-controller-manager -
eda-server-operator-controller-manager -
resource-operator-controller-manager
-
- Upgrade your PostgreSQL 13 to PostgreSQL 15.
Scale your deployments back up using:
oc scale deployment --replicas=1 -n <component-namespace> <component-deployment>- Log in to Red Hat OpenShift Container Platform.
- Navigate to → .
- Click the ⋮ icon next to your deployment and then click .
- From the Details tab, select .
- Select stable-2.6 as the channel and click .
Deploy Ansible Automation Platform 2.6 using the following custom resource (CR):
apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: aap spec: database: database_secret: postgres-config-gateway controller: name: existing-controller eda: disabled: true hub: name: existing-hub
Verification
To verify your upgrade was successful, go to your users, collection, job history or similar and confirm that they are on the new 2.6 instance and in the new PostgreSQL 15 databases.
Chapter 11. Updating Red Hat Ansible Automation Platform on Red Hat OpenShift Container Platform Copy linkLink copied to clipboard!
You can use an upgrade patch to update your operator-based Ansible Automation Platform.
11.1. Patch updating Ansible Automation Platform on OpenShift Container Platform Copy linkLink copied to clipboard!
When you perform a patch update for an installation of Ansible Automation Platform on OpenShift Container Platform, most updates happen within a channel:
- A new update becomes available in the marketplace (through the redhat-operator CatalogSource).
A new InstallPlan is automatically created for your Ansible Automation Platform subscription. If the subscription is set to Manual, the InstallPlan must be manually approved in the OpenShift UI. If the subscription is set to Automatic, it upgrades as soon as the new version is available.
NoteIt is recommended that you set a manual install strategy on your Ansible Automation Platform Operator subscription (set when installing or upgrading the Operator) and you will be prompted to approve an upgrade when it becomes available in your selected update channel. Stable channels for each X.Y release (for example, stable-2.5) are available.
- A new Subscription, CSV, and Operator containers will be created alongside the old Subscription, CSV, and containers. Then the old resources will be cleaned up if the new install was successful.
Chapter 12. Enabling execution nodes on Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
You can enable the Ansible Automation Platform Operator with execution nodes by downloading and installing the install bundle.
When using a custom certificate for Receptor nodes, the certificate requires the otherName field specified in the Subject Alternative Name (SAN) of the certificate with the value 1.3.6.1.4.1.2312.19.1. For more information, see Above the mesh TLS.
Receptor does not support the usage of wildcard certificates. Additionally, each Receptor certificate must have the host FQDN specified in its SAN for TLS hostname validation to be correctly performed.
12.1. Adding execution nodes to Red Hat Ansible Automation Platform Operator Copy linkLink copied to clipboard!
You can add execution nodes from the Ansible Automation Platform user interface.
Prerequisites
- An automation controller instance.
- The receptor collection package is installed.
-
The Ansible Automation Platform repository
ansible-automation-platform-2.6-for-rhel-{RHEL-RELEASE-NUMBER}-x86_64-rpmsis enabled.
Procedure
- Log in to Red Hat Ansible Automation Platform.
- In the navigation panel, select → → .
- Click .
- Input the Execution Node domain name or IP in the Host Name field.
- Optional: Input the port number in the Listener Port field.
- Click .
-
Click the download icon
next to Install Bundle. This starts a download, take note of where you save the file
Untar the gz file.
NoteTo run the
install_receptor.ymlplaybook you must install the receptor collection from Ansible Galaxy:ansible-galaxy collection install -r requirements.ymlUpdate the playbook with your user name and SSH private key file. Note that
ansible_hostpre-populates with the hostname you input earlier.all: hosts: remote-execution: ansible_host: example_host_name # Must match what is configured in AAP WebUI ansible_user: <username> #user provided Ansible_ssh_private_key_file: ~/.ssh/id_example- Open your terminal, and navigate to the directory where you saved the playbook.
To install the bundle run:
ansible-playbook install_receptor.yml -i inventory.yml- When installed you can now upgrade your execution node by downloading and re-running the playbook for the instance you created.
Verification
To verify receptor service status run the following command:
sudo systemctl status receptor.service
Make sure the service is in active (running) state
To verify if your playbook runs correctly on your new node run the following command:
watch podman ps
Additional resources
Chapter 13. Ansible Automation Platform Resource Operator Copy linkLink copied to clipboard!
13.1. Resource Operator overview Copy linkLink copied to clipboard!
Resource Operator is a custom resource (CR) that you can deploy after you have created your platform gateway deployment.
With Resource Operator you can define resources such as projects, job templates, and inventories in YAML files.
automation controller then uses the YAML files to create these resources. You can create the YAML through the Form view that prompts you for keys and values for your YAML code. Alternatively, to work with YAML directly, you can select YAML view.
The Resource Operator provides the following CRs:
- AnsibleJob
- JobTemplate
- Automation controller project
- Automation controller schedule
- Automation controller workflow
- Automation controller workflow template:
- Automation controller inventory
- Automation controller credential
For more information on any of the above custom resources, see Using automation execution.
13.2. Using Resource Operator Copy linkLink copied to clipboard!
The Resource Operator itself does not do anything until the user creates an object. As soon as the user creates an AutomationControllerProject or AnsibleJob resource, the Resource Operator starts processing that object.
Prerequisites
- Install the Kubernetes-based cluster of your choice.
-
Deploy automation controller using the
automation-controller-operator.
Procedure
-
After installing the
automation-controller-resource-operatorin your cluster, you must create a Kubernetes (k8s) secret with the connection information for your automation controller instance. - Then you can use Resource Operator to create a k8s resource to manage your automation controller instance.
13.3. Connecting Resource Operator to platform gateway Copy linkLink copied to clipboard!
To connect Resource Operator with platform gateway you must create a Kubernetes secret with the connection information for your automation controller instance.
Use the following procedure to create an OAuth2 token for your user in the platform gateway UI.
You can only create OAuth 2 Tokens for your own user through the API or UI, which means you can only configure or view tokens from your own user profile.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- In the navigation panel, select → .
- Select the username you want to create a token for.
- Select →
- Click .
You can leave Applications empty. Add a description and select Read or Write for the Scope.
NoteMake sure you provide a valid user when creating tokens. Otherwise, you get an error message that you tried to issue the command without either specifying a user, or supplying a username that does not exist.
13.4. Creating a automation controller connection secret for Resource Operator Copy linkLink copied to clipboard!
To make your connection information available to the Resource Operator, create a k8s secret with the token and host value.
Procedure
The following is an example of the YAML for the connection secret. Save the following example to a file, for example,
automation-controller-connection-secret.yml.apiVersion: v1 kind: Secret metadata: name: controller-access type: Opaque stringData: token: <generated-token> host: https://my-controller-host.example.com/- Edit the file with your host and token value.
-
Apply it to your cluster by running the
kubectl createcommand:
kubectl create -f controller-connection-secret.yml
13.5. Create custom resources for Resource Operator Copy linkLink copied to clipboard!
Use the Resource Operator to manage automation controller resources directly from your Kubernetes cluster. This section provides the procedures for creating custom resources like AnsibleJob, JobTemplate, AnsibleProject, and more.
13.5.1. Creating an AnsibleJob custom resource Copy linkLink copied to clipboard!
An AnsibleJob custom resource launches a job in the automation controller instance specified in the Kubernetes secret (automation controller host URL, token). You can launch an automation job on automation controller by creating an AnsibleJob resource.
Procedure
Specify the connection secret and job template you want to launch.
apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleJob metadata: generateName: demo-job-1 # generate a unique suffix per 'kubectl create' spec: connection_secret: controller-access job_template_name: Demo Job TemplateConfigure features such as, inventory, extra variables, and time to live for the job.
spec: connection_secret: controller-access job_template_name: Demo Job Template inventory: Demo Inventory # Inventory prompt on launch needs to be enabled runner_image: quay.io/ansible/controller-resource-runner runner_version: latest job_ttl: 100 extra_vars: # Extra variables prompt on launch needs to be enabled test_var: test job_tags: "provision,install,configuration" # Specify tags to run skip_tags: "configuration,restart" # Skip tasks with a given tagNoteYou must enable prompt on launch for inventories and extra variables if you are configuring those. To enable Prompt on launch, within the automation controller UI: From the → page, select your template and select the Prompt on launch checkbox next to Inventory and Variables sections.
Launch a workflow job template with an AnsibleJob object by specifying the
workflow_template_nameinstead ofjob_template_name:apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleJob metadata: generateName: demo-job-1 # generate a unique suffix per 'kubectl create' spec: connection_secret: controller-access workflow_template_name: Demo Workflow Template
13.5.2. Creating a JobTemplate custom resource Copy linkLink copied to clipboard!
A job template is a definition and set of parameters for running an Ansible job. For more information see the Job Templates section of the Using automation execution guide.
Procedure
Create a job template on automation controller by creating a JobTemplate custom resource:
apiVersion: tower.ansible.com/v1alpha1 kind: JobTemplate metadata: name: jobtemplate-4 spec: connection_secret: controller-access job_template_name: ExampleJobTemplate4 job_template_project: Demo Project job_template_playbook: hello_world.yml job_template_inventory: Demo Inventory
13.5.3. Creating an automation controller project custom resource Copy linkLink copied to clipboard!
A Project is a logical collection of Ansible playbooks, represented in automation controller. For more information see the Projects section of the Using automation execution guide.
Procedure
Create a project on automation controller by creating an automation controller project custom resource:
apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleProject metadata: name: git spec: repo: https://github.com/ansible/ansible-tower-samples branch: main name: ProjectDemo-git scm_type: git organization: Default description: demoProject connection_secret: controller-access runner_pull_policy: IfNotPresent
13.5.4. Creating an automation controller schedule custom resource Copy linkLink copied to clipboard!
Define an AnsibleSchedule custom resource to create a schedule on the automation controller, ensuring you specify the necessary apiVersion, kind, and a unique metadata.name.
Procedure
Create a schedule on automation controller by creating an automation controller schedule custom resource:
apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleSchedule metadata: name: schedule spec: connection_secret: controller-access runner_pull_policy: IfNotPresent name: "Demo Schedule" rrule: "DTSTART:20210101T000000Z RRULE:FREQ=DAILY;INTERVAL=1;COUNT=1" unified_job_template: "Demo Job Template"
13.5.5. Creating an automation controller workflow custom resource Copy linkLink copied to clipboard!
Workflows enable you to configure a sequence of disparate job templates (or workflow templates) that may or may not share inventory, playbooks, or permissions. For more information see the Workflows in automation controller section of the Using automation execution guide.
Procedure
Create a workflow on automation controller by creating a workflow custom resource:
apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleWorkflow metadata: name: workflow spec: inventory: Demo Inventory workflow_template_name: Demo Job Template connection_secret: controller-access runner_pull_policy: IfNotPresent
13.5.6. Creating an automation controller workflow template custom resource Copy linkLink copied to clipboard!
A workflow job template links together a sequence of disparate resources to track the full set of jobs that were part of the release process as a single unit.
For more information see the Workflow job templates section of the Using automation execution guide.
Procedure
Create a workflow template on automation controller by creating a workflow template custom resource:
apiVersion: tower.ansible.com/v1alpha1 kind: WorkflowTemplate metadata: name: workflowtemplate-sample spec: connection_secret: controller-access name: ExampleTowerWorkflow description: Example Workflow Template organization: Default inventory: Demo Inventory workflow_nodes: - identifier: node101 unified_job_template: name: Demo Job Template inventory: organization: name: Default type: job_template - identifier: node102 unified_job_template: name: Demo Job Template inventory: organization: name: Default type: job_template
13.5.7. Creating an automation controller inventory custom resource Copy linkLink copied to clipboard!
By using an inventory file, Ansible Automation Platform can manage a large number of hosts with a single command.
Inventories also help you use Ansible Automation Platform more efficiently by reducing the number of command line options you have to specify. For more information see the Inventories section of the Using automation execution guide.
Procedure
Create an inventory on automation controller by creating an inventory custom resource:
metadata: name: inventory-new spec: connection_secret: controller-access description: my new inventory name: newinventory organization: Default state: present instance_groups: - default variables: string: "string_value" bool: true number: 1 list: - item1: true - item2: "1" object: string: "string_value" number: 2
13.5.8. Creating an automation controller credential custom resource Copy linkLink copied to clipboard!
Credentials authenticate the automation controller user when launching jobs against machines, synchronizing with inventory sources, and importing project content from a version control system.
SSH and AWS are the most commonly used credentials. For a full list of supported credentials see the Credential types section of the Using automation execution guide.
For help with defining values you can refer to the OpenAPI (Swagger) file for Red Hat Ansible Automation Platform API KCS article.
You can use https://<aap-instance>/api/controller/v2/credential_types/ to view the list of credential types on your instance. To get the full list use the following curl command:
export AAP_TOKEN="your-oauth2-token"
export AAP_URL="https://your-aap-controller.example.com"
curl -s -H "Authorization: Bearer $AAP_TOKEN" "$AAP_URL/api/controller/v2/credential_types/" | jq -r '.results[].name'
Procedure
Create an AWS or SSH credential on automation controller by creating a credential custom resource:
SSH credential:
apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleCredential metadata: name: ssh-cred spec: name: ssh-cred organization: Default connection_secret: controller-access description: "SSH credential" type: "Machine" ssh_username: "cat" ssh_secret: my-ssh-secret runner_pull_policy: IfNotPresentAWS credential:
apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleCredential metadata: name: aws-cred spec: name: aws-access organization: Default connection_secret: controller-access description: "This is a test credential" type: "Amazon Web Services" username_secret: aws-secret password_secret: aws-secret runner_pull_policy: IfNotPresent
Chapter 14. Troubleshooting the Red Hat Ansible Automation Platform Operator on OpenShift Container Platform Copy linkLink copied to clipboard!
This guide provides a collection of commands and tips to help you diagnose and resolve common issues with your Ansible Automation Platform deployment on OpenShift Container Platform. You will learn how to view logs, inspect resources, and collect diagnostic data for support.
14.1. Understanding automation controller operator logs Copy linkLink copied to clipboard!
When the operator deploys an Automation Controller instance, it runs an installer role inside the operator container. If the automation controller’s status is Failed, you must check the automation-controller-operator container logs. These logs provide the installer role’s output and are a critical first step in debugging deployment issues.
14.2. Viewing events in the OpenShift Container Platform Copy linkLink copied to clipboard!
You can view events in the OpenShift Container Platform web console to monitor for errors and troubleshoot issues. This helps you quickly diagnose problems by examining the status of custom resources and their related events.
You can debug by first reviewing the status conditions of the Ansible Automation Platform custom resource (CR) and then checking any nested CRs for errors.
Procedure
- Log in to the OpenShift Container Platform web console.
- In the navigation menu, select → .
- Select your project from the project list.
- To view events for a specific resource, navigate to that resource’s page. Many resource pages, such as pods and deployments, have their own Events tab.
- Select a resource to bring you to the Pod Details page.
Verification
Check the Conditions section on the Pod details page to confirm no errors are listed in the Message column.
14.3. Viewing operator logs Copy linkLink copied to clipboard!
The following procedure is an example of how to view the logs for an automation-controller-operator pod.
Procedure
To find the pod name, run:
oc get pods | grep operatorto view the logs for the pod, run:
oc logs <operator-pod-name> -fAlternatively, to view the logs without first getting the pod name, run:
oc logs deployments/automation-controller-operator-controller-manager -c automation-controller-manager -f
14.4. Configuring log verbosity Copy linkLink copied to clipboard!
You can enable task output for debugging on any custom resources (CRs) by setting no_log to false in the component section of the AnsibleAutomationPlatform CR.
The logs then show output for any failed tasks that originally had no_log set to true. All Ansible Automation Platform components (automation controller, automation hub, and Event-Driven Ansible) support the no_log setting.
Procedure
Edit the Ansible Automation Platform CR and set the
no_logfield tofalsefor the component you want to debug.For automation controller:
apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: controller: no_log: falseFor automation hub:
apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: hub: no_log: falseFor Event-Driven Ansible:
apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: eda: no_log: falseNoteThis might expose sensitive data in the logs. On production clusters, this value must generally be set to
trueunless you are actively debugging an issue.To increase the Ansible Playbook verbosity from the operator, set the verbosity level using an annotation on the Ansible Automation Platform CR:
apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap annotations: ansible.sdk.operatorframework.io/verbosity: "4" spec: # ... component configuration ...
14.5. Inspecting a OpenShift Container Platform resource Copy linkLink copied to clipboard!
To inspect a OpenShift Container Platform resource, you must use the oc command to get a summary or the full YAML definition of the resource.
Procedure
To view a human-readable summary of a resource, run:
oc describe -n <namespace> <resource> <resource-name>To view the complete YAML definition of a resource, use the
-o yamlflag:oc get -n <namespace> <resource> <resource-name> -o yamlFor example, to get the YAML for the
automationcontrollercustom resource, run:oc get -n aap automationcontroller aap -o yaml
14.6. Core Ansible Automation Platform resources Copy linkLink copied to clipboard!
The following table lists and describes the core custom resources (CRs) that the Ansible Automation Platform Operator manages. Understanding these resources will help you with advanced troubleshooting and configuration.
| Resource name | Description |
|---|---|
|
| CR for deploying the entire Ansible Automation Platform. |
|
| CR for creating backups of the entire Ansible Automation Platform instance. |
|
| CR for restoring the entire Ansible Automation Platform instance from a backup. |
|
| CR defining the desired state of an automation controller instance. |
|
| CR for creating backups of automation controller data and configuration. |
|
| CR for restoring the automation controller from a backup. |
|
| CR for deploying an automation hub (Galaxy) instance. |
|
| CR for creating backups of automation hub data and configuration. |
|
| CR for restoring automation hub from a backup. |
|
| CR for deploying an Event-Driven Ansible (EDA) instance. |
|
| CR for creating backups of EDA data and configuration. |
|
| CR for restoring EDA from a backup. |
|
| CR for deploying an Red Hat Ansible Lightspeed instance. |
14.7. Standard Kubernetes resources Copy linkLink copied to clipboard!
Standard Kubernetes resources are a core part of the OpenShift Container Platform. The following table describes the standard resources you can inspect to troubleshoot the state and configuration of an application.
| Resource name | Description |
|---|---|
|
| Smallest deployable unit containing one or more containers running the application workloads. |
|
| Manages pod configuration and scaling. |
|
| A PersistentVolumeClaim (PVC) is a request for storage resources, used for persistent data storage. |
|
| Exposes pods as network services with stable IP addresses and DNS names within the cluster. |
|
| Manages external HTTP and HTTPS access to services within the cluster. |
|
| An OpenShift-specific resource for exposing services externally (similar to an ingress). |
|
| Stores sensitive data like passwords, tokens, and certificates. |
|
| Provides identity for processes running in pods to access permissions to other Kubernetes resources. |
14.8. Discovering custom resource definition configuration parameters Copy linkLink copied to clipboard!
The Ansible Automation Platform Operator manages multiple custom resources (CRs), each with its own configuration parameters. Use the oc explain command to discover all available configuration options for the AnsibleAutomationPlatform CR and its nested components.
Procedure
To see all available configuration parameters for a top-level CR, run:
oc explain ansibleautomationplatform.specTo view component-specific configuration options nested under the Ansible Automation Platform CR, query them through the component section:
oc explain ansibleautomationplatform.spec.controller.postgres_configuration_secret oc explain ansibleautomationplatform.spec.controller.route_tls_termination_mechanism oc explain ansibleautomationplatform.spec.hub.storage_type oc explain ansibleautomationplatform.spec.eda.automation_server_urlTo explore all nested fields for a specific component, use the
--recursiveflag:oc explain ansibleautomationplatform.spec.controller --recursive oc explain ansibleautomationplatform.spec.hub --recursive oc explain ansibleautomationplatform.spec.eda --recursiveNoteYou can also query individual component CRs directly if needed:
oc explain automationcontroller.spec oc explain automationhub.spec oc explain eda.specHowever, when configuring components through the Ansible Automation Platform CR (recommended approach), use the nested paths shown above.
14.9. Collecting Diagnostic Data Copy linkLink copied to clipboard!
Use the oc adm must-gather command to collect comprehensive diagnostic data about your cluster and the Ansible Automation Platform components. This data is essential when contacting Red Hat Support.
Procedure
To start the
must-gathertool, run:oc adm must-gather --image=registry.redhat.io/ansible-automation-platform-26/aap-must-gather-rhel9NoteFor version 2.6, the base image name changes to
registry.redhat.io/ansible-automation-platform-26/aap-must-gather-rhel9.View the collected data, use the
omctool to query themust-gathertarball as if it were a live cluster.omc use <path-to-must-gather> omc get pods
14.10. Debugging crashing pods Copy linkLink copied to clipboard!
If a pod is failing or crashing, use the oc debug command. This command creates a new pod with the same configuration and mounts as the pod you specified, allowing you to access it for debugging.
Procedure
To connect to the pod, run:
oc debug <pod-name>
14.11. Operator service account error Copy linkLink copied to clipboard!
Manually modifying the aap_operator_service_account user in the Ansible Automation Platform database or UI removes the required is_superuser flag. This action causes a critical failure in the platform gateway operator’s reconciliation loop.
You see the following error:
TASK [ansibleautomationplatform : Create operator service account user] … CommandError: Error: That username is already taken
The Ansible Automation Platform operator automatically recreates the service account when the account is missing. To restore the required superuser privileges, you must remove the existing, incorrectly configured user.
After you delete the user, the platform gateway operator automatically runs its idempotency logic, recreates the account, and ensures it has the necessary is_superuser=True flag, restoring the reconciliation loop’s functionality.
Chapter 15. Appendix: Red Hat Ansible Automation Platform custom resources Copy linkLink copied to clipboard!
This appendix provides a reference for the Ansible Automation Platform custom resources for various deployment scenarios.
You can link in existing components by specifying the component name under the name variable. You can also use name to create a custom name for a new component.
15.1. Custom resources Copy linkLink copied to clipboard!
15.1.1. aap-existing-controller-and-hub-new-eda.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
name: existing-controller
disabled: false
eda:
disabled: false
hub:
name: existing-hub
disabled: false
15.1.2. aap-all-defaults.yml Copy linkLink copied to clipboard!
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
# Platform
## uncomment to test bundle certs
# bundle_cacert_secret: gateway-custom-certs
# Components
hub:
disabled: false
## uncomment if using file storage for Content pod
storage_type: file
file_storage_storage_class: nfs-local-rwx
file_storage_size: 10Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
# lightspeed:
# disabled: true
# End state:
# * Automation controller deployed and named: myaap-controller
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub deployed and named: myaap-hub
15.1.3. aap-existing-controller-only.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
name: existing-controller
eda:
disabled: true
hub:
disabled: true
## uncomment if using file storage for Content pod
# storage_type: file
# file_storage_storage_class: nfs-local-rwx
# file_storage_size: 10Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
# End state:
# * Automation controller: existing-controller registered with Ansible Automation Platform UI
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub deployed and named: myaap-hub
15.1.4. aap-existing-hub-and-controller.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
name: existing-controller
disabled: false
eda:
disabled: true
hub:
name: existing-hub
disabled: false
# End state:
# * Automation controller: existing-controller registered with Ansible Automation Platform UI
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub: existing-hub registered with Ansible Automation Platform UI
15.1.5. aap-existing-hub-controller-eda.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
name: existing-controller # <-- this is the name of the existing AutomationController CR
disabled: false
eda:
name: existing-eda
disabled: false
hub:
name: existing-hub
disabled: false
# End state:
# * Controller: existing-controller registered with Ansible Automation Platform UI
# * * Event-Driven Ansible: existing-eda registered with Ansible Automation Platform UI
# * * Automation hub: existing-hub registered with Ansible Automation Platform UI
#
# Note: The automation controller, Event-Driven Ansible, and automation hub names must match the names of the existing.
# Automation controller, Event-Driven Ansible, and automation hub CRs in the same namespace as the Ansible Automation Platform CR. If the names do not match, the Ansible Automation Platform CR will not be able to register the existing automation controller, Event-Driven Ansible, and automation hub with the Ansible Automation Platform UI,and will instead deploy new automation controller, Event-Driven Ansible, and automation hub instances.
15.1.6. aap-existing-hub-controller-eda.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
name: existing-controller # <-- this is the name of the existing AutomationController CR
disabled: false
eda:
name: existing-eda
disabled: false
hub:
name: existing-hub
disabled: false
# End state:
# * Automation controller: existing-controller registered with Ansible Automation Platform UI
# * * Event-Driven Ansible: existing-eda registered with Ansible Automation Platform UI
# * * Automation hub: existing-hub registered with Ansible Automation Platform UI
#
# Note: The automation controller, Event-Driven Ansible, and automation hub names must match the names of the existing.
# Automation controller, Event-Driven Ansible, and automation hub CRs in the same namespace as the Ansible Automation Platform CR. If the names do not match, the Ansible Automation Platform CR will not be able to register the existing automation controller, Event-Driven Ansible, and automation hub with the Ansible Automation Platform UI,and will instead deploy new automation controller, Event-Driven Ansible, and automation hub instances.
15.1.7. aap-fresh-controller-eda.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
disabled: false
eda:
disabled: false
hub:
disabled: true
## uncomment if using file storage for Content pod
storage_type: file
file_storage_storage_class: nfs-local-rwx
file_storage_size: 10Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
# End state:
# * Automation controller deployed and named: myaap-controller
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub disabled
# * Red Hat Ansible Lightspeed disabled
15.1.8. aap-fresh-external-db.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
disabled: false
eda:
disabled: false
hub:
disabled: false
## uncomment if using file storage for Content pod
storage_type: file
file_storage_storage_class: nfs-local-rwx
file_storage_size: 10Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
# End state:
# * Automation controller deployed and named: myaap-controller
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub deployed and named: myaap-hub
15.1.9. aap-configuring-external-db-all-default-components.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
database:
database_secret: external-postgres-configuration-gateway
controller:
postgres_configuration_secret: external-postgres-configuration-controller
hub:
postgres_configuration_secret: external-postgres-configuration-hub
eda:
database:
database_secret: external-postgres-configuration-eda
15.1.10. aap-configuring-existing-external-db-all-default-components.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
database:
database_secret: external-postgres-configuration-gateway
The system uses the external database for platform gateway, and automation controller, automation hub, and Event-Driven Ansible continues to use the existing databases that were used in 2.4.
15.1.11. aap-configuring-external-db-with-lightspeed-enabled.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
database:
database_secret: external-postgres-configuration-gateway
controller:
postgres_configuration_secret: external-postgres-configuration-controller
hub:
postgres_configuration_secret: external-postgres-configuration-hub
eda:
database:
database_secret: external-postgres-configuration-eda
lightspeed:
disabled: false
database:
database_secret: <secret-name>-postgres-configuration
auth_config_secret_name: 'auth-configuration-secret'
model_config_secret_name: 'model-configuration-secret'
You can follow the Red Hat Ansible Lightspeed with IBM watsonx Code Assistant User Guide for help with creating the model and auth secrets.
15.1.12. aap-fresh-install-with-settings.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
image_pull_policy: Always
# Platform
## uncomment to test bundle certs
# bundle_cacert_secret: gateway-custom-certs
# Components
controller:
disabled: false
image_pull_policy: Always
extra_settings:
- setting: MAX_PAGE_SIZE
value: '501'
eda:
disabled: false
image_pull_policy: Always
extra_settings:
- setting: EDA_MAX_PAGE_SIZE
value: '501'
hub:
disabled: false
image_pull_policy: Always
## uncomment if using file storage for Content pod
storage_type: file
file_storage_storage_class: rook-cephfs
file_storage_size: 10Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
pulp_settings:
MAX_PAGE_SIZE: 501
cache_enabled: false
# lightspeed:
# disabled: true
# End state:
# * Automation controller deployed and named: myaap-controller
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub deployed and named: myaap-hub
15.1.13. aap-fresh-install.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
# Redis Mode
# redis_mode: cluster
# Platform
## uncomment to test bundle certs
# bundle_cacert_secret: gateway-custom-certs
# extra_settings:
# - setting: MAX_PAGE_SIZE
# value: '501'
# Components
controller:
disabled: false
eda:
disabled: false
hub:
disabled: false
## uncomment if using file storage for Content pod
storage_type: file
file_storage_storage_class: nfs-local-rwx
file_storage_size: 10Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
# lightspeed:
# disabled: true
# End state:
# * Automation controller deployed and named: myaap-controller
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub deployed and named: myaap-hub
15.1.14. aap-fresh-only-controller.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
disabled: false
eda:
disabled: true
hub:
disabled: true
## uncomment if using file storage for Content pod
# storage_type: file
# file_storage_storage_class: nfs-local-rwx
# file_storage_size: 10Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
# End state:
# * Automation controller: existing-controller registered with Ansible Automation Platform UI
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub deployed and named: myaap-hub
15.1.15. aap-fresh-only-hub.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
disabled: true
eda:
disabled: true
hub:
disabled: false
## uncomment if using file storage for Content pod
storage_type: file
file_storage_storage_class: nfs-local-rwx
file_storage_size: 10Gi
# # AaaS Hub Settings
# pulp_settings:
# cache_enabled: false
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
lightspeed:
disabled: false
# End state:
# * Automation controller disabled
# * * Event-Driven Ansible disabled
# * * Automation hub deployed and named: myaap-hub
# * Red Hat Ansible Lightspeed disabled
15.1.16. aap-lightspeed-enabled.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
disabled: false
eda:
disabled: false
hub:
disabled: false
## uncomment if using file storage for Content pod
storage_type: file
file_storage_storage_class: nfs-local-rwx
file_storage_size: 10Gi
## uncomment if using S3 storage for Content pod
# storage_type: S3
# object_storage_s3_secret: example-galaxy-object-storage
## uncomment if using Azure storage for Content pod
# storage_type: azure
# object_storage_azure_secret: azure-secret-name
lightspeed:
disabled: false
# End state:
# * Automation controller deployed and named: myaap-controller
# * * Event-Driven Ansible deployed and named: myaap-eda
# * * Automation hub deployed and named: myaap-hub
# * Red Hat Ansible Lightspeed deployed and named: myaap-lightspeed
15.1.17. gateway-only.yml Copy linkLink copied to clipboard!
---
apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatform
metadata:
name: myaap
spec:
# Development purposes only
no_log: false
controller:
disabled: true
eda:
disabled: true
hub:
disabled: true
lightspeed:
disabled: true
# End state:
# * Platform gateway deployed and named: myaap-gateway
# * UI is reachable at: https://myaap-gateway-gateway.apps.ocp4.example.com
# * Automation controller is not deployed
# * * Event-Driven Ansible is not deployed
# * * Automation hub is not deployed
# * Red Hat Ansible Lightspeed is not deployed