Hello Guys, In this post, I would like to experiment with the installation of AWX on a new variety of Linux that is Alpine Linux.
Prerequisites
- Here I will go with the Alpine Linux which is the default Operating System on Play with Docker
- alternatively, You must have at least 3 boxes on either vagrant or Any cloud instances (AWS) 1 Ansible engine remaining 2 for remote nodes
- AWX is GUI/web tool which is currently broken down to AWX-operator and AWX Task
The AWX up to 18 version installations used docker based environments, where it uses the following Docker images from the Docker hub
- Postgress SQL
- Rabbit MQ
- MemCache
Steps to install AWX
1. Update the repo on the Alpine Linux
apk update
2. Installing with apk package manager 'add' subcommand will do the installation.
apk add ansibleThis will be installing Ansible on Alpine Linux.
Ansible installation on Play with Docker (PWD) instance |
3. Validate the ansible installation using the version option.
ansible --versionThis will be confirming that installing Ansible on the Alpine Linux is confirmed.
git clone -b 17.1.0 https://github.com/ansible/awx.gitThis will be installing Ansible on the Alpine Linux.
git clone awx 17.1.0 |
openssl rand -base64 30
Step 6: The configure for the awx are as follows:
admin_password=p@ssw0rd123 secret_key=5r9L1GqfR/GjJh5+JyBBQLd5bv/7B8/BsNF3z0N6 pg_database=postgres pg_password=p@ssw0rd123 awx_alternate_dns_servers="8.8.8.8,8.8.4.4" postgres_data_dir="/var/lib/awx/pgdocker" docker_compose_dir="/var/lib/awx/awxcompose" project_data_dir="/var/lib/awx/projects"
ansible-playbook -i ~/awx/installer/inventory ~/awx/installer/install.yml -vExecution might take several minutes, at the end you can see the following
That is all for now in this post you can check other Ansible related posts links from right side of this blog!