It has been a while as I have been busy writing, I thought I would spend some of my freetime having a very quick play with Ansible AWX , which is the Open Source version of Ansible Tower .
I created the following Vagrantfile to launch a CentOS 7 server;
This launches the following playbook.yml which prepares the CentOS 7 box by installing Docker and the other prerequisites need to build and launch AWX;
(You can find the files above in a gist on GitHub
) Running vagrant up
will launch the CentOS 7 machine and execute the playbook to install AWX, this process takes about 15 minutes.
In the background the installer has built and downloaded several Docker images, you can check what is going on the machine by running;
Once the build has completed you should the following images;
Also, you should have several containers running;
Once the containers have launched, going to http://localhost:8080/ should show you the following;
After a while the page will eventually refresh into a login screen, the default user is admin and the password is password. Once logged in you will be taken to the dashboard, here you can see that there is already a project created, this is a simple test job;
You can test your installation by running the test job, which is the Ansible equivalent of a Hello World, you can see the output of running the template below;
As I said at the start of this post this was a only a quick post to document how you can get quickly (well sort of quickly) get an AWX host up and running, if you would like more detail on how to use AWX see the Ansible Tower Document site .