Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GMKBabu/3175fe43796d32023cf6d00b1202b0b1 to your computer and use it in GitHub Desktop.
Save GMKBabu/3175fe43796d32023cf6d00b1202b0b1 to your computer and use it in GitHub Desktop.
Install AWX on CentOS 7
[https://computingforgeeks.com/install-ansible-awx-on-centos-7-fedora-with-nginx-reverse-proxy-letsencrypt/]
###Appendix: Let's Encrypt with Certbot on Amazon Linux
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-an-instance.html#letsencrypt
# Insall EPEL repository
yum -y install epel-release
# Disable firewall and SELinux
systemctl disable firewalld
systemctl stop firewalld
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenforce 0
reboot
# Enable continuous release (CR) repository if some paskage from EPEL are dependant on newer release
yum -y install git gettext ansible docker nodejs npm gcc-c++ bzip2
yum -y install python-docker-py
# Start and enable docker service
systemctl start docker
systemctl enable docker
# Clone repository and deploy (it will take about 20 minutes)
git clone https://github.com/ansible/awx.git
cd awx/installer/
ansible-playbook -i inventory install.yml
# Monitor migrations status (it will take about 10 minutes)
docker logs -f awx_task
Now you can access AWX web server http://my-awx.example.com.
The default administrator username is admin, and the password is password.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment