Comments on: How to Install Ansible AWX with Docker-Compose on CentOS 8 https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/ Thu, 24 Jun 2021 11:16:46 +0000 hourly 1 By: Santosh Dalvi https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-23416 Thu, 24 Jun 2021 11:16:46 +0000 http://www.linuxtechi.com/?p=9389#comment-23416 I am getting below errors:

TASK [local_docker : Start the containers] **************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “errors”: [], “module_stderr”: “”, “module_stdout”: “latest: Pulling from library/redis\n”, “msg”: “Error starting project error pulling image configuration: Get ‘https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/08/08502081bff61084d64fc76f0f90ea39b89935cd071d9e12c5374ae191ff53c0/data?verify=1624536303-%2FTjVbrf5Qzo7XaF3Ar6xaJjkCCo%3D’: dial tcp 104.18.125.25:443: i/o timeout”}

PLAY RECAP **********************************************************************************************************************************************************************************************************************************
localhost : ok=15 changed=4 unreachable=0 failed=1 skipped=97 rescued=0 ignored=0

]]>
By: Ahmed https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-22276 Fri, 06 Nov 2020 11:37:44 +0000 http://www.linuxtechi.com/?p=9389#comment-22276 Great tutorial.
My requirement is I need to setup AWX auto scalable and HA. Is there any automation like terraform, cloudformation or ansible to deploy latest version of AWX on AWS.
Please help

]]>
By: Hazem Elbaz https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-22029 Sat, 17 Oct 2020 19:56:57 +0000 http://www.linuxtechi.com/?p=9389#comment-22029 i have this error after run the command [ # ansible-playbook -i inventory install.yml]

fatal: [localhost]: FAILED! => {“changed”: false, “errors”: [], “module_stderr”: “”, “module_stdout”: “15.0.0: Pulling from ansible/awx\n”, “msg”: “Error starting project unauthorized: authentication required”}

]]>
By: Drew https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-21057 Sat, 18 Jul 2020 06:32:11 +0000 http://www.linuxtechi.com/?p=9389#comment-21057 Pradeep,

I had same issue, I don’t think you are installing Ansible locally at all anywhere. ansible-playbook command isn’t found, not even in pip. I went the route of pip3 install ansible and then ran the command.

]]>
By: Sel https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-21042 Thu, 16 Jul 2020 12:07:00 +0000 http://www.linuxtechi.com/?p=9389#comment-21042 Super notes, thanks for sharing. If anyone wants to know how to “configure SSL on Ansible AWX” using a self signed certificate then this should help you. This wasn’t documented propertly anywhere!

SSL on Ansible AWX

These steps worked seamlessly for us as of July 2020 version of AWX on Centos 8 server.

cd into the directory for your awx/inventory file
In my environment this was in /opt/awx/ so…

cd /opt/awx/installer

edit your “inventory” file and uncomment following 3 lines and add in the 4 line (change the directory path to the location where you will be storing your server.crt and server.key files)

host_port=80
host_port_ssl=443
ssl_certificate=/opt/awx/certs/server.crt
ssl_certificate_key=/opt/awx/certs/server.key

cd into /opt/awx/
mkdir certs/
cd into certs/

Run the following command to create your self-signed certificate.

openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout server.key -out server.crt -subj “/C=GB/ST=UK/L=London/O=OrganisationName/OU=Product Engineering/CN=awx.local/emailAddress=chosen@emailaddress.com”

From the directory which contains your awx/installer/inventory file run the following to update your configuation

ansible-playbook -i inventory install.yml

Then test your connection and hopefully SSL will now work for you! 🙂

Hope this helps you. If so please comment and let me know.

Sel

]]>
By: Pradeep Kumar https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-20827 Mon, 29 Jun 2020 03:17:22 +0000 http://www.linuxtechi.com/?p=9389#comment-20827 In reply to jen.

Hi Jen,

There could be two reasons for that, either you have not cloned awx git repo or you might be running the command from wrong directory.

]]>
By: jen https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-20817 Sun, 28 Jun 2020 11:49:55 +0000 http://www.linuxtechi.com/?p=9389#comment-20817 on this step ( ansible-playbook -i inventory install.yml ) the system is not having ansible-playbook )
ansible-playbook is not in my server. i have not missed anything, what i am missing?

]]>
By: Roy https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-20758 Mon, 22 Jun 2020 16:03:06 +0000 http://www.linuxtechi.com/?p=9389#comment-20758 I successfully configured & launched the AWX web UI. But when i try to login it says, Invalid username and/or password. Please try again.

When i verify the logs by docker logs -f awx_web , i could see the below errors,

2020-06-22 15:54:02,971 WARNING awx.api.generics Login failed for user admin from 172.18.0.1
2020-06-22 15:54:03,213 WARNING django.request Unauthorized: /api/login/
2020-06-22 15:54:03,213 WARNING django.request Unauthorized: /api/login/

Any help would be grateful.

]]>
By: mike https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-20596 Mon, 08 Jun 2020 09:35:02 +0000 http://www.linuxtechi.com/?p=9389#comment-20596 In reply to Bob.

when cloning a build (Step 5 in this article)
use the -b switch (to specify the build version)
git clone -b 11.2.0 https://github.com/ansible/awx.git
it solves the issue!

taken from here is a problem for everyone.)
https://github.com/ansible/awx/issues/7246

]]>
By: Bob https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/#comment-20561 Fri, 05 Jun 2020 13:17:35 +0000 http://www.linuxtechi.com/?p=9389#comment-20561 I’m getting this error

TASK [local_docker : Start the containers] **************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “errors”: [], “module_stderr”: “”, “module_stdout”: “”, “msg”: “Error starting project 404 Client Error: Not Found (\”b\”pull access denied for ansible/awx, repository does not exist or may require ‘docker login’\”\”)”}

]]>