Install AWX on Centos 7.5

edit hostname

nano /etc/hosts
127.0.0.1	awx

install epel & update

yum install -y epel-release
yum repolist
yum -y update

install requirement packet

curl -fsSL https://get.docker.com/ | sh
yum install -y yum-utils device-mapper-persistent-data lvm2 ansible git python-devel python-pip python-docker-py vim-enhanced

start docker

systemctl start docker
systemctl enable docker

verification

docker -v
ansible --version

clone ansible awx

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

edit inventory

nano inventory

postgres_data_dir=/var/lib/pgdocker
awx_official=true
awx_alternate_dns_servers="4.2.2.1,4.2.2.2"
project_data_dir=/var/lib/awx/projects

view inventory

cat inventory |grep -v "#"

install ansible awx

ansible-playbook -i inventory install.yml -vv

check awx is deploy

docker container ls

 

Comments are closed.