Installation Deployment Ansible AWX on CentOS 7 - PandaM0nium/AWX GitHub Wiki
yum install centos-release-scl
yum install rh-python36
yum install -y epel-release
yum install python-pip
easy_install pip
pip install --upgrade --force-reinstall pip==9.0.3
pip install cryptography --disable-pip-version-check
pip install jsonschema --disable-pip-version-check
pip install docker-compose~=1.23.0 --disable-pip-version-check
pip install docker --disable-pip-version-check
pip install --upgrade pip
yum install -y yum-utils device-mapper-persistent-data lvm2 ansible git python-devel python-pip python-docker-py vim-enhanced
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce -y
systemctl start docker
systemctl enable docker
git clone https://github.com/ansible/awx.git
cd awx/
git clone https://github.com/ansible/awx-logos.git
cd installer/
vim inventory
modify the follwing section within inventory and save
* awx_official=true
* project_data_dir=/var/lib/awx/projects
* postgres_data_dir=/var/lib/pgdocker
* docker_compose_dir=/var/lib/awx
firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload
ansible-playbook -i inventory install.yml -vv
navigate to http://localhost or http:// to access AWX
username: admin
password: password
Most likely, the page will get stuck at "AWX is upgrading loop". This is a known problem which many people have to deal with. To fix this problem perform the following procedure.
stop docker container by
-
docker restart awx_task
-
docker restart awx_web
-
docker restart awx_postgres
-
docker restart awx_memcached
-
docker restart awx_redis
then
run install.yml again