Installing Redhat AWX (Ansible Tower) on an AWS RHEL 7.5 instance


This lab will guide you how to install Redhat Ansible Tower (called AWX as the Open Source version). Ansible Tower is a central control system to orchestrate your Ansible automation deployments on your different infrastructure nodes.

Installing Docker on an AWS RHEL 7.5 instance


Step 1: Install Docker

I chose an AWS instance type t2.small for this lab purpose.

Depending on your AWS region, it can happen that yum install docker won’t function and you get this message:

# yum install docker
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
No package docker available.
Error: Nothing to do

For AWS, we have to explicitly enable the repository:

# sudo yum-config-manager --enable rhui-REGION-rhel-server-extras

Then Rerun yum install

# yum install docker

Run the Docker daemon

# sudo systemctl start docker

Step 2: Install Docker compose by activating the Epel-repo

# sudo yum install –y

Then install docker-compose

# yum install docker-compose

If the version of docker-compose is not updated in the epel repo, download it from github

# sudo curl -L${VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
# sudo chmod +x /usr/local/bin/docker-compose

Step 3: Verify the docker installation

# docker run hello-world
# docker-compose version

Install Ansible AWX (Open Source Tower)

Dowload the docker container at the latest version of AWX from github

# curl -O

Then run docker-compose

# /usr/local/bin/docker-compose up -d

Open AWX (Tower interface) on the Webbrowser and start playing with it.

http://localhost or with your public http://DNS if it is open publicly on the cloud.

Leave a Reply

Your email address will not be published. Required fields are marked *