🅰️ Ansible
Install Ansible AWX
1. Updating packages
sudo apt update && sudo apt -y upgrade
2. Install VMWare tools, net-tools, git, python
sudo apt install python-setuptools -y
sudo apt install net-tools -y
sudo apt install git -y
sudo apt install python3-pip -y
sudo pip3 install ansible
3. Install Docker
sudo apt install docker docker.io -y
docker version
pip install docker==6.1.3
4. Install and check docker compose
sudo pip3 install docker-compose
docker-compose version
5. Give access to the docker group for currently logged-in users.
sudo usermod -aG docker $USER
6. Install the required package like pwgen, vim and git to install and setup awx
sudo apt install git vim pwgen -y
7. Clone code aws
git clone -b 17.0.1 https://github.com/ansible/awx.git
8. Config AWS, create secret key
cd awx/installer
pwgen -N 1 -s 30
Copy secret key
9. Modify the admin_password and secret_key
sudo vi inventory
10. Build AWX
make docker-compose-build
ansible-playbook -i inventory install.yml