Skip to content

How to Change Admin Password in Ansible Automation Platform on OpenShift

Introduction

In Red Hat OpenShift Container Platform 4.x, the process of changing the admin password for the Ansible Automation Platform (AAP) Controller might seem daunting at first. However, with this step-by-step guide, you’ll be able to navigate through the process seamlessly.

Understanding the Scenario

After installing the Ansible Automation Platform Controller in OpenShift, there may arise a need to change the admin user’s password. Despite altering the password in the controller-admin-password secret resource, logging in becomes a challenge. The controller-admin-password secret resource, in the Ansible Automation Platform namespace, is only used for storing the initial password during the controller deployment and will not be used for actual authentication.

Please note, that the secret name will be the name of your automation controller deployment. Eg: if the automation controller deployment name is example, then the secret name will be example-admin-password by default. You can also create a secret upfront and pass it to the AAP operator while creating a new controller deployment.

Ansible automation controller secret created by the AAP Operator.

How to change the admin password then?

It is pretty straightforward; just log in as admin user and change it from the automation controller WEBUI. Need a step-by-step guide? then see below.

  1. Access Ansible Automation Platform Controller:
    • Log in to the Ansible Automation Platform Controller using the admin credentials provided or created during installation. yes, the same password you retrieved from the secret controller-admin-password.
  2. Navigate to User Details:
    • In the top-right corner of the screen, locate and click on the admin user.
  3. Edit User Details:
    • From the dropdown menu, select User Details.
    • On the User Details page, you’ll find a blue “Edit” button. Click on it to proceed.
  4. Change Password:
    • In the Edit User Details section, you’ll see fields labelled “Password” and “Confirm Password.”
    • Type your desired password in both fields.
  5. Save Changes:
    • Once you’ve entered the new password, click the “Save” button to confirm the changes.
Changing admin password for the automation controller.

Congratulations! You’ve successfully changed the admin password for the Ansible Automation Platform Controller in OpenShift.

Remember that the password stored in the controller-admin-password secret becomes invalid after this process. If the secret is deleted, it’ll be recreated with a new random password, which will also be invalid. To ensure smooth authentication, store the correct password in the controller-admin-password secret.

Disclaimer:

The views expressed and the content shared in all published articles on this website are solely those of the respective authors, and they do not necessarily reflect the views of the author’s employer or the techbeatly platform. We strive to ensure the accuracy and validity of the content published on our website. However, we cannot guarantee the absolute correctness or completeness of the information provided. It is the responsibility of the readers and users of this website to verify the accuracy and appropriateness of any information or opinions expressed within the articles. If you come across any content that you believe to be incorrect or invalid, please contact us immediately so that we can address the issue promptly.

Avatar photo


https://www.linkedin.com/in/gineesh/ https://twitter.com/GiniGangadharan
Gineesh Madapparambath is the founder of techbeatly and he is the author of the book - 𝗔𝗻𝘀𝗶𝗯𝗹𝗲 𝗳𝗼𝗿 𝗥𝗲𝗮𝗹-𝗟𝗶𝗳𝗲 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗶𝗼𝗻. He has worked as a Systems Engineer, Automation Specialist, and content author. His primary focus is on Ansible Automation, Containerisation (OpenShift & Kubernetes), and Infrastructure as Code (Terraform). (aka Gini Gangadharan - iamgini.com)

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.