AWX Password Reset / Unable to log in

While deploying AWX for managing Ansible on top of docker-ce I faced a strange issue. Even though deployment completed successfully I was unable to log in. While troubleshooting, I found that my deployment has not created the admin user I defined for some kind of reason. So I created it manually with below commands.

docker exec -it awx_web bash

and after getting into container’s bash execute below command to create a new superuser

awx-manage createsuperuser --username admin

Alternatively, if you need to reset the password of any user for some reason you can use below one in the container. Replace {USER_NAME} with the desired username.

awx-manage changepassword admin
#OR
awx-manage changepassword {USER_NAME}

If you are looking to deploy AWX below is a well detailed guide.

https://www.techsupportpk.com/2020/03/how-to-install-ansible-awx-centos-rhel-7-8.html