Awx Without Docker

2/12/2022by admin

How to install AWX on RHEL 7 without Docker?Helpful? Please support me on Patreon: thanks & praise to God, and wit. Jan 15, 2018 As the implementer of AWX our organisation I would like the flexibility of having the database on our postgres cluster. Configuring this to sit behind a reverse proxy. Scaling out components of the AWX to different servers. Believe me i do like the docker concept for this install and works for most but we need more install options and flexibility. Installing Docker. AWX comes in a containerised form that can run on Docker, Kubernetes or OpenShift. If you have the latter 2 already in place, it may be easier to leverage them. Since I had nothing in place and Docker seemed to be the easiest to get up and running, I decided to use it. AWX without docker. Ask Question Asked 1 year, 10 months ago. Active 8 months ago. Viewed 2k times 2 I'm trying to install AXW for ansible on ubuntu but I would love. Installation AWX without Docker on CentOS 7. December 22, 2019 admin Uncategorized Ansible, AWX, CentOS, Python3, Python3-pip 0 Comments.

  1. Awx Without Docker Tutorial
  2. Awx Without Docker Command

AWX

AWX is the open source version of Ansible Tower. There are good install instructions available at Installing AWX. It basically breaks down into 3 steps:

  1. Clone the Repo
  2. Configure the installer
  3. Install on a container platform (I just used docker-compose)

So let’s try it out.

Configure the AWX installer

So let’s clone the repo:

Here are the settings I ended up modifying:

Create a PostGreSQL Database

I already had a running postgresql container running that was used by other containers, so I decided to use that for awx as well. I logged in and created the database and user:

Now that we have the prereqs done, let’s install it:

Run the AWX installer

My docker host was an ubuntu machine, so I installed the latest ansible version by adding a custom repo and then installing the package:

Now if we go back to the awx repo we can run the installer:

Next we can confirm the containers are running:

At point you should be able to see the login page (http://DOCKER_HOST:HOST_PORT):

Create a Sample Job to be Executed

As a quick test, let’s create a template job to be executed. First go to Credentials and add your SSH key which will be used to login to the hosts:

Centos

Then create a project (which is covered at the Ansible Tower User Guide - Projects page). When creating a project you can point to a git repo which has all the configs. Here is the sample git repo I started from from. I ended up with the following files:

Then when adding the project, point to the git repo:

The inventory file contains a list of hosts which the ansible playbooks are run against (more information about inverntories is available at the Ansible Tower User Guide - Inventories page). We adding an inventory file you can reference one from a project (which is why we had one in the sample git repo). So let’s create an inventory and point to the newly created Project’s file:

Then if you go to the Hosts tab of the inventory you will see all the hosts read in:

Lastly create a template under Templates and point to:

Awx Without Docker Tutorial

  • Inventory
  • Project
  • Playbook
  • Credential

Then after creating the template, you will see a Launch button:

and upon clicking that it will run your play book against your inventory:

You can also create schedules associated with the template:

And you have a lot of options for sending notifications:

Awx Without Docker

Then after creating a notification you can choose which one to use and for what types of results for a template:

And you will get the following notification when your job succeeds or fails:

BTW if you want to install any role from galaxy you can follow instructions laid out in Ansible Tower User Guide - Ansible Galaxy Support. And when running a template with specific roles you will see them get intalled:

Ubuntu

Using tower-cli

We can also install tower-cli and run the commands remotely. The configuration and installation are covered here:

On my Mac, I ran the following to first install the tower-cli:

Then configured it:

Awx Without Docker Command

Lastly to make sure it works, I queried the template list:

You can even run a job and monitor it:

Pretty cool stuff.

Comments are closed.