Comments on How to Install Ansible AWX on CentOS 8

AWX stands for "Ansible Web eXecutable" is a free and open-source project that allows you to manage and control your Ansible project easily. It provides a web-based user interface and task engine built on top of Ansible. In this tutorial, we will show you how to install Ansible AWX with Docker on CentOS 8.

18 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: marian

the below entry is the hashed value for admin passwd or the db passwd ?

secret_key=R+kbcDEUS8DlAftAbfWafVqLZ0lUy+Paqo4fEtgp

By: MrWhiteSays

This hashed value is a secret key generated with openssl to encrypt inventory file...not a password.

By: Christian

missing:dnf install dnf-plugins-coreotherwise this will not work:

dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

By: Aruna Kumar Badatya

ansible-playbook -i inventory install.yml On above setup Getting below error ERROR! the playbook: install.yml could not be found

By: Zeke

I installed the minimal Centos 8 installation and attempted to follow this guide. I'm getting an error related to the requests module for python 2.6, however, I only have python 3.6 installed and for some reason is attempting to use Python 2.6 libraries.

 

TASK [local_docker : Start the containers] *********************************************************************

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on awx8.thepalace.local's Python /bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: No module named 'requests'"}

By: Ravi

How can I reset the loin admin user password after installation ?

By: Koteswaran

Bro, 

Really great work.. Helped me to configure the new server in just couple of hours..

Much appreciate for the great blog..

By: Jari

I had to do pg_sslmode=disable in the inventory file for this to work. Also it didn't ansible/awx_rabbitmq, but it did install something calle radis.

By: Stephen

Hi

Got as far as this cmd "ansible-playbook -i inventory install.yml"

gave me this error?

Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39

 

When i do pip3 install docker-compose , I always get failure and i am behind proxy . Is there any other way i can install docker compose offline

By: Chester

Getting this error which stops my installation from completing:

The full traceback is:

  File "/tmp/ansible_docker_compose_payload_i4gqwi29/ansible_docker_compose_payload.zip/ansible/modules/cloud/docker/docker_compose.py", line 791, in cmd_up

  File "/usr/lib/python3.6/site-packages/compose/project.py", line 452, in up

    svc.ensure_image_exists(do_build=do_build)

  File "/usr/lib/python3.6/site-packages/compose/service.py", line 318, in ensure_image_exists

    self.pull()

  File "/usr/lib/python3.6/site-packages/compose/service.py", line 1074, in pull

    output = self.client.pull(repo, tag=tag, stream=True)

  File "/usr/lib/python3.6/site-packages/docker/api/image.py", line 393, in pull

    self._raise_for_status(response)

  File "/usr/lib/python3.6/site-packages/docker/api/client.py", line 224, in _raise_for_status

    raise create_api_error_from_http_exception(e)

  File "/usr/lib/python3.6/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception

    raise cls(e, response=response, explanation=explanation)

fatal: [localhost]: FAILED! => {

    "changed": false,

    "errors": [],

    "invocation": {

        "module_args": {

            "api_version": "auto",

            "build": false,

            "ca_cert": null,

            "client_cert": null,

            "client_key": null,

            "debug": false,

            "definition": null,

            "dependencies": true,

            "docker_host": "unix://var/run/docker.sock",

            "files": null,

            "hostname_check": false,

            "nocache": false,

            "project_name": null,

            "project_src": "/root/.awx/awxcompose",

            "pull": false,

            "recreate": "smart",

            "remove_images": null,

            "remove_orphans": false,

            "remove_volumes": false,

            "restarted": true,

            "scale": null,

            "services": null,

            "ssl_version": null,

            "state": "present",

            "stopped": false,

            "timeout": 10,

            "tls": false,

            "tls_hostname": "localhost",

            "validate_certs": false

        }

    },

    "module_stderr": "",

    "module_stdout": "",

    "msg": "Error starting project 500 Server Error: Internal Server Error (\"b'Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)'\")"

}

 

By: bill dossett

This has worked well for me on the past 3 awx installs - however installing awx14.1 I had to reboot before I could get to the UI, and then the UI says it is upgrading...  I think I may have had to reboot with awx13 as well.  I checked and all 4 docker containers were running, but just would not respond.  Thinking about it, I disabled firewall on my box when your instructions say to configure it - on a private network behind firewall so not really interested in double firewalling on these test boxes - that may have caused the need for reboot.

By: svein

Hi after i have "disabled selinux", i did a reboot of the system, and i can´t ssh into the server again? Anything that i´m missing?

By: barry

hi process did not work for my fith attempt  to day ion 3 types of servers with 5 diferent  sets of instructions     

 

getting   

 

[root@ip-10-0-0-74 ~]# dnf install docker-ce-3:18.09.1-3.el7 -y

Docker CE Stable - x86_64                                                                                                                                                                                     14 kB/s | 3.8 kB     00:00

No match for argument: docker-ce-3:18.09.1-3.el7

Error: Unable to find a match

under ews server  - thoughts ?   

By: Matts

barry try this:

You may also need to uninstall podman and buildah if youre using CentOS8

sudo curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo sudo yum makecache sudo dnf -y install docker-ce --nobest

Hi .. I am unable to find the installer folder

After running "Next, change the directory to awx/installer/ and edit the inventory file:"

I get the following "-bash: cd: awx/installer/: No such file or directory"

Therefore can not continue...with the installation.. please assist.

 

By: chuwaca

New AWX versions does not work properly with this article. This article shall be to an exact AWX version (17 I guess). If you download latest AWX branch this article is totally useless

By: veliseev

git clone -b 17.0.1 https://github.com/ansible/awx.git