Ansible Tower requires at least 2 GB of RAM, but recommends at least 4 GB. Use the free command to determine how much memory your system has. In this example, the system has less than 2 GB of memory, which will cause the install the fail. If your server does not have enought free memory, add memory to the server before installing Ansible Tower.
free -h
. . .
total used free shared buffers cached
Mem: 19G 19G 510M 16K 185M 3.6G
Swap: 2.0G 380M 1.6G
The curl command with the --insecure flag to ignore SSL certificate issues can be used to download the Ansible Tower tar archive. In this example, ansible-tower-setup-latest.tar.gz would be downloaded to the /tmp directory.
curl --insecure -o "/tmp/ansible-tower-setup-latest.tar.gz" "https://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz"
Extract the tar archive.
tar -zxf /tmp/ansible-tower-setup-latest.tar.gz
Enter the extracted archive.
cd /tmp/ansible-tower-setup*/
Edit the inventory file, and define passwords.
admin_password='your_password'
pg_password='your_password'
rabbitmq_password='your_password'
Use the sestatus command to determine if SELinux is enforcing, disabled, or permissive.
sestatus
. . .
Current mode: enforcing
If SELinux is enforcing, determine if the libselinux-python package is installed. If libselinux-python is listed under "Available Packages", this means libselinux-python is not installed.
yum list libselinux-python
. . .
Available Packages
libselinux-python.x86_64
If libselinux-python is not installed, install libselinux-python.
yum install libselinux-python
Run the setup.sh script.
./setup.sh
If setup is successful, the following will be displayed.
The setup process completed successfully
If the install was successful, the /etc/ansible and /etc/tower directories should exist.
The ansible-tower-service status command can be used to check if Ansible is running, like this.
ansible-tower-service status
. . .
● rh-postgresql10-postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/rh-postgresql10-postgresql.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-03-08 04:15:33 CDT; 1 months 1 days ago
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-03-08 04:15:40 CDT; 1 months 1 days ago
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-03-08 04:19:23 CDT; 1 months 1 days ago
You are now ready to start using Ansible Tower.