Ansible Automation Platform on OpenShift
Prerequisites
Follow these steps to install the Ansible Automation Platform (AAP) Operator on your
OpenShift cluster and deploy an AAP instance. The verified version used in this
guide is AAP 2.5 (Operator CSV aap-operator.v2.5.0-0.1737675968,
Controller 4.6.7).
Before you start, make sure you are logged in to the OpenShift cluster as a
cluster-adminuser.oc login https://api.<cluster-domain>:6443 -u kubeadmin oc whoami # must return cluster-admin
Check to see if your
nfs-clientStorageClass (or your preferred RWX-capable StorageClass) is available:oc get storageclass
Your cluster global pull secret includes credentials for
registry.redhat.io(required to pull Red Hat images):oc get secret pull-secret -n openshift-config \ -o jsonpath='{.data.\.dockerconfigjson}' | base64 -d | python3 -m json.tool | grep registry.redhat.ioIf
registry.redhat.iois missing, add it via the OpenShift console under Cluster Settings → Global Pull Secret, or contact your Red Hat account team for registry credentials.
Create the Namespace and OperatorGroup
Configure the Red Hat Registry Pull Secret
The operator pods must pull images from
registry.redhat.io.
Create the Operator Subscription
Approve the InstallPlan
Because installPlanApproval is set to Manual,
the operator will not install until you explicitly approve the generated
InstallPlan.
Deploy the AnsibleAutomationPlatform CR
Verify the Installation
Retrieve Admin Credentials
The operator auto-generates admin passwords and stores them in secrets within the
aap namespace. Retrieve them as follows:
# Gateway / Platform admin password
oc get secret aap-admin-password -n aap \
-o jsonpath='{.data.password}' | base64 -d; echo
# Automation Controller admin password
oc get secret aap-controller-admin-password -n aap \
-o jsonpath='{.data.password}' | base64 -d; echo
# Automation Hub admin password
oc get secret aap-hub-admin-password -n aap \
-o jsonpath='{.data.password}' | base64 -d; echo
# EDA admin password
oc get secret aap-eda-admin-password -n aap \
-o jsonpath='{.data.password}' | base64 -d; echo