---
title: Ansible Automation Platform
weight: 20
aliases: /federated-edge-observability/aap/
---

:toc: 
:imagesdir: /images
:_content-type: ASSEMBLY
include::modules/comm-attributes.adoc[]

[id="ansible-automation-pattern"]
== Logging in to the Ansible Automation Platform

The default login user for the AAP interface is `admin`, and the password is randomly generated during installation. This password is required to access the interface.
However, logging into the interface is not necessary, as the pattern automatically configures the AAP instance. The pattern retrieves the password by using the same method as the `ansible_get_credentials.sh` script (described below).

If you need to inspect the AAP instance or change its configuration, there are two ways to log in. Both methods give access to the same instance using the same password.

[id="logging-in-using-a-secret-retrieved-from-the-openshift-console"]
=== Logging in using a secret retrieved from the OpenShift Console

Follow these steps to log in to the Ansible Automation Platform using the OpenShift console:

. In the OpenShift console, go to *Workloads* > *Secrets* and select the `ansible-automation-platform` project if you want to limit the number of secrets you can see.
+
.AAP secret
image::/images/federated-edge-observability/ocp-console-secrets-aap-admin-password.png[federated-edge-observability-operators,title="AAP secret"]

.. Select the `aap-admin-password`. 

.. In the Data field click *Reveal values* to display the password. 
+
.AAP secret detail
image::/images/federated-edge-observability/ocp-console-aap-admin-password-detail.png[federated-edge-observability-operators,title="AAP secret details"]

. Under *Networking* > *Routes*, click the URL for the `aap` route to open the Ansible Automation Platform interface. 

.. Log in using the `admin` user and the password you retrieved from the `aap-admin-password` secret. The following image shows the screen that appears after logging in.
+
.AAP screen
image::/images/federated-edge-observability/app-login.png[federated-edge-observability-operators,title="AAP screen"]

[id="logging-in-using-secret-retrieved-using-script-ansible_get_credentials"]
=== Logging in using a secret retrieved with ansible_get_credentials.sh

Follow this procedure to log in to the Ansible Automation Platform using the `ansible_get_credentials.sh` script:

. From the top-level pattern directory (ensuring you have set `KUBECONFIG`), run the following command:
+
[source,terminal]
----
$ ./pattern.sh ./scripts/ansible_get_credentials.sh
----
+
This script retrieves the URL for your Ansible Automation Platform instance and the password for its `admin` user. The password is auto-generated by the AAP operator by default. The output of the command looks like this (your password will be different):
+
[source,text]
----
[WARNING]: No inventory was parsed, only implicit localhost is available

PLAY [Retrieve Credentials for AAP on OpenShift] *******************************************************************

TASK [Retrieve API hostname for AAP] *******************************************************************
ok: [localhost]

TASK [Set ansible_host] *****************************************************************
ok: [localhost]

TASK [Retrieve admin password for AAP] *****************************************************************************
ok: [localhost]

TASK [Set admin_password fact] ****************************************************************************************
ok: [localhost]

TASK [Report AAP Endpoint] *****************************************************************************************
ok: [localhost] => {
    "msg": "AAP Endpoint: https://aap-ansible-automation-platform.apps.kevstestcluster.aws.validatedpatterns.io"
}

TASK [Report AAP User] ******************************************************************************
ok: [localhost] => {
    "msg": "AAP Admin User: admin"
}

TASK [Report AAP Admin Password] *******************************************************************
ok: [localhost] => {
    "msg": "AAP Admin Password: XoQ2MoU88ibAwUZI8tHu194DP304UEqz"
}

PLAY RECAP *******************************************************************************
localhost                  : ok=7    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
----