Skip to content

Instantly share code, notes, and snippets.

@standaloneSA
Created May 9, 2020 21:49
Show Gist options
  • Save standaloneSA/848c501f979972e3f41434036b157c50 to your computer and use it in GitHub Desktop.
Save standaloneSA/848c501f979972e3f41434036b157c50 to your computer and use it in GitHub Desktop.
Install AWX (Tower) on CentOS 7
#!/bin/bash
set -e
setenforce Permissive
yum install -y epel-release
yum remove python-docker-py -y
yum install python3 python3-pip3 -y
pip3 install cryptography
pip3 install jsonschema
pip3 install docker-compose~=1.23.0
pip3 install --upgrade docker
yum install -y yum-utils device-mapper-persistent-data lvm2 ansible git python-devel python-pip python-docker-py vim-enhanced libselinux-python
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce -y
systemctl enable --now docker
if [ -e awx ]; then
rm -rf awx
fi
git clone https://github.com/ansible/awx.git
cd awx/
git clone https://github.com/ansible/awx-logos.git
cd installer/
sed -i 's/# awx_official=false$/awx_official=true/g' inventory
ansible-playbook -i inventory install.yml -vv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment