Ansible is a free and open-source configuration management and automation tool used to manage hundreds and thousands of servers from a central location.
Ansible AWX is an open-source project, sponsored by Red Hat, that helps you control Ansible in IT environments. It provides a web-based interface REST API and task engine for Ansible. You can manage playbooks, secrets, inventories, and cron jobs using the AWX web-based interface.
In this tutorial, we will show you how to install Ansible AWX with Docker on Debian 10.
A fresh Debian 10 VPS on the Atlantic.net Cloud Platform
A root password configured on your server
Step 1 – Create an Atlantic.Net Cloud Server
First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Debian 10 as the operating system, with at least 4GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.
Once you are logged in to your Debian 10 server, run the following command to update your base system with the latest available packages.
apt-get update -y
Step 2 – Install Docker
First, you will need to install the Docker and Docker compose in your system. By default, the latest version of Docker is not available in the Debian standard repository, so you will need to add the Docker repository to your system.
Install the required dependencies with the following command:
Next, you can verify the list of running containers using the following command:
You should get the following output:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
167d008ee26f ansible/awx:14.1.0 "/usr/bin/tini -- /u…" About a minute ago Up About a minute 8052/tcp awx_task
260c028bf07d ansible/awx:14.1.0 "/usr/bin/tini -- /b…" About a minute ago Up About a minute 0.0.0.0:80->8052/tcp awx_web
e15d5ee1c940 postgres:10 "docker-entrypoint.s…" About a minute ago Up About a minute 5432/tcp awx_postgres
6472ee690066 redis "docker-entrypoint.s…" About a minute ago Up About a minute 6379/tcp awx_redis
Step 5 – Access Ansible AWX Dashboard
Now, open your web browser and access the Ansible AWX dashboard using the URL http://your-server-ip. You will be redirected to the AWX login page:
Provide your admin username and password that you have defined in the inventory file and click on the SIGNIN button. You should see the Ansible AWX dashboard on the following page:
Congratulations! You have successfully installed Ansible AWX with Docker on Debian 10. You can now easily control Ansible inventory, secrets, playbooks, and more from the AWX dashboard; try it now on VPS Hosting from Atlantic.Net!