Comments on How to Install Ansible AWX with Nginx Reverse Proxy on Ubuntu 18.04 LTS

In this tutorial, we're going to show you how to install and configure the AWX on Ubuntu server 18.04. We're going to install the AWX with Nginx as a reverse proxy and built on the HTTPS secure connection.

16 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: reuben devries

I can't seem to find the following command in the inventory file of the version of AWX - any ideas?

use_docker_compose

By: googleme

for anyone else encountering this, please note that you can still continue with the rest of the tutorial as AWX will still manage to be setup successfully. 

By: Paul

getting this error when running nginx -t, any idea how to resolve?

nginx: [emerg] BIO_new_file("/etc/nginx/ssl/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/ssl/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)

By: till

The SSL certificate is missing, probably something went wrong while you created the SSL cert. Redo the steps to create the SSL cert.

By: cam

where are the steps to create ssl cert?

By: Anand

Great article! But I also found that use_docker_compose line is missing from the latest inventory file in the github

https://github.com/ansible/awx/blob/devel/installer/inventory

All the docker containers are running but docker-compose is not set up.

By: otoniel araujo

umbuntu 18.04.. ansible-playbook -i inventory install.yml apresentando ""The error appears to have been in '/awx/installer/roles/local_docker/tasks/compose.yml': line 25, column 3, but may"" Solução:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 $ sudo apt update $ sudo apt install ansible

Depois tente novamente.

By: Jan

/awx/installer# ansible-playbook -i inventory install.ymlERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.The error appears to have been in '/root/awx/installer/roles/local_docker/tasks/compose.yml': line 25, column 3, but maybe elsewhere in the file depending on the exact syntax problem.The offending line appears to be:- name: Start the containers  ^ here

By: An$ible

I would suggest that Ansible is installed using the official repository as otherwise you might receive errors when trying to run the playbook that will install AWX. To do this you would need to execute the following steps:

1) sudo apt-add-repository ppa:ansible/ansible

2) sudo apt update

3) sudo apt install ansible

By: javier

I got this :|TASK [local_docker : Start the containers] ******************************************************************************************************************fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error connecting: Error while fetching server API version: Timeout value connect was Timeout(connect=10, read=10, total=None), but it must be an int or float."}

By: hroubaix

I get the same error. Did you manage to get a resolution?

By: Javier

I got this :|TASK [local_docker : Start the containers] ******************************************************************************************************************fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error connecting: Error while fetching server API version: Timeout value connect was Timeout(connect=10, read=10, total=None), but it must be an int or float."}

 

I managed to solve thisFirst move .local to another place or just delete itmv .local .local.oldNext, install docker in docker composepip install dockerpip install docker-compose

ansible-playbook -i inventory install.ymlthe magic is done

By: Stefan

Is the docker service started (systemctl status docker) ?

By: devnull

https://github.com/ansible/awx/issues/4120 has a better nginx config to use.  If you're trying to do callbacks with AWX, your nginx config properly pass headers to work.  I would recommend updating your page accordingly.  

By: Jason

Thanks for this, very helpful. As of Jan-2020, I had to manually install the newest version of ansible rather than just doing the apt-get install:

sudo apt update $ sudo apt install software-properties-common $ sudo apt-add-repository --yes --update ppa:ansible/ansible $ sudo apt install ansibleOtherwise I got:The error appears to have been in '/home/xubuntu/Downloads/awx/installer/roles/local_docker/tasks/compose.yml': line 25, column 3, but may be elsewhere in the file depending on the exact syntax problem.

By: Saravanan

Thanks for sharing the steps. In the following step, awx/installer folder doesnt exists. Could you please check on your steps and update this link accordingly. Appreciate your help.

 

git clone https://github.com/ansible/awx.gitcd awx/installer/