Skip to content

Instantly share code, notes, and snippets.

@LoesterFranco
Forked from initcron/instll_awx_centos7.sh
Created August 5, 2021 12:59
Show Gist options
  • Save LoesterFranco/2491bc48e15619ce2acf79907d2006c2 to your computer and use it in GitHub Desktop.
Save LoesterFranco/2491bc48e15619ce2acf79907d2006c2 to your computer and use it in GitHub Desktop.
Install AWX ( Ansible Tower Open Source Version ) on CentOS 7. Script created using document at https://howto.lintel.in/install-ansible-tower-awx-centos-7/
#!/bin/bash
echo "I: "
echo "I: installing dependencies....."
yum install -y epel-release
yum remove python-docker-py
yum install -y yum-utils device-mapper-persistent-data lvm2 ansible git python3-devel python3-pip python3-docker-py vim-enhanced
pip3 install cryptography
pip3 install jsonschema
pip3 install docker-compose
pip3 install docker
yum -y install python3 libselinux-python3
echo "I: installing docker...."
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
echo "I: deploying awx...."
git clone https://github.com/ansible/awx.git
cd awx/
git clone https://github.com/ansible/awx-logos.git
cd installer/
# edit inventory
# awx_official=true
# admin_passowrd=password
# then launch installer as
# ansible-playbook -i inventory install.yml -vv
## Additional Steps
#Install Docker Compose
curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Deploy managed nodes with docker compose
git clone https://github.com/schoolofdevops/zerola.git
cd zerola/raw
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment