Install AWX in docker

Page content

AWX is an open source web application that provides a user interface, REST API, and task engine for Ansible.

Install Docker and docker-compose

sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2

sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo

sudo yum -y install docker-ce docker-ce-cli containerd.io

service docker start
systemctl enable docker

yum install epel-release
yum install python-pip -y
pip install docker-compose
yum install git ansible -y

cd /opt
git clone https://github.com/ansible/awx.git
cd awx/installer/

nano inventory
postgres_data_dir=/opt/pgdocker
docker_compose_dir=/opt/awxcompose
pg_username=awx
pg_password=Password1
rabbitmq_password=Password1
admin_user=admin
admin_password=Password1
project_data_dir=/var/lib/awx/projects

ansible-playbook -i inventory install.yml

docker logs awx_task -f

dockerhub_base=ansible dockerhub_version=latest