Get up to 50% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

How to Change Admin Password in Ansible Automation Platform on OpenShift

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.
  1. Change Password: - In the Edit User Details section, you’ll see fields labelled “Password” and “Confirm Password.”
  • Type your desired password in both fields.
  1. 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.

Share :

Related Posts

Dynamic Scheduler in Ansible Automation Platform

Dynamic Scheduler in Ansible Automation Platform

This blog starts with one patching automation workshop. The customer’s procedure is that the end user raises a patching request. The request includes …

Learn Ansible – A Comprehensive Guide for Courses and Exams

Learn Ansible – A Comprehensive Guide for Courses and Exams

Introduction Ansible is a well-known open-source IT and application automation software which can be used to implement enterprise automation use …

How To Pass Environment Variables to Ansible Navigator

How To Pass Environment Variables to Ansible Navigator

ansible-navigator is the new command line utility (CLI) introduced in Ansible Automation Platform 2, for running and developing Ansible automation …

Multi-Level Approvals in Ansible Automation Controller: A Workaround

Multi-Level Approvals in Ansible Automation Controller: A Workaround

Ansible Automation Controller streamlines IT tasks through automation. A key component of this power lies in workflows . These workflows allow you to …

Ansible Collections [LIVE]

Ansible Collection is a great way of getting content contributions from various Ansible Developers. We will learn what is Ansible Collection and how …

Introducing the Event-Driven Ansible & Demo

Introducing the Event-Driven Ansible & Demo

In AnsibleFest 2022, Red Hat announced an exciting new developer preview for Event-Driven Ansible. Event-Driven Ansible is a new way to enhance and …