I’m logged as “root” on my CentOS 7.2 virtual machine :

[root@ansible ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)

Ansible Tower installation

Install EPEL repository :

[root@ansible ~]# yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Install Ansible :

[root@ansible ~]# yum -y install ansible

Download Ansible Tower :

  • go to “/tmp” :
[root@ansible ~]# cd /tmp
  • Use “curl” to download the file :
[root@ansible tmp]# curl -O https://releases.ansible.com/awx/setup/ansible-tower-setup-latest.tar.gz

Create an installation directory, then go there :

[root@ansible tmp]# mkdir /ansible-tower && cd /ansible-tower

Extract the tar file :

[root@ansible ansible-tower]# tar xfz /tmp/ansible-tower-setup-latest.tar.gz

Go to “ansible-tower-setup-2.4.5” :

[root@ansible ansible-tower]# cd ansible-tower-setup-2.4.5

Execute the wizard :

[root@ansible ansible-tower-setup-2.4.5]# ./configure
-------------------------------------------
Welcome to the Ansible Tower Install Wizard
-------------------------------------------

This wizard will guide you through the setup process.

PRIMARY TOWER MACHINE
Tower can be installed (or upgraded) on this machine, or onto a remote machine
that is reachable by SSH.

Note: If using the High Availability features of Tower, you must use DNS
resolvable hostnames or IP addresses (do not use "localhost").

Enter the hostname or IP to configure Ansible Tower
(default: localhost):
Installing Tower on localhost.

DATABASE
Tower can use an internal database installed on the Tower machine, or an
external PostgreSQL database. An external database could be a hosted database,
such as Amazon's RDS.

An internal database is fine for most situations. However, to use the High
Availability features of Tower, an external database is required.

If using an external database, the database (but not the necessary tables) must
already exist.

Will this installation use an (i)nternal or (e)xternal database? i

PASSWORDS
For security reasons, since this is a new install, you must specify the
following application passwords.

Enter the desired Ansible Tower admin user password:
Enter the desired Munin password:

REVIEW
You selected the following options:

The primary Tower machine is: localhost
Tower will operate on an INTERNAL database.

Are these settings correct (y/n)?
Settings saved to /ansible-tower/ansible-tower-
setup-2.4.5/tower_setup_conf.yml.

FINISHED!
You have completed the setup wizard. You may execute the installation of
Ansible Tower by issuing the following command:

sudo ./setup.sh

Let’s go on with the installation (it will take a while and many messages will be displayed) :

[root@ansible ansible-tower-setup-2.4.5]# ./setup.sh
---
---
---
The setup process completed successfully.
Setup log saved to /var/log/tower/setup-2016-07-02-20:11:30.log
You have mail in /var/spool/mail/root

For more cenvenience, intall “net-tools” :

[root@ansible ansible-tower-setup-2.4.5]# yum -y install net-tools

Display opened ports :

[root@ansible ansible-tower-setup-2.4.5]# netstat -ntulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      4767/redis-server 1
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      6607/python
tcp        0      0 127.0.0.1:5556          0.0.0.0:*               LISTEN      6796/python
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1229/sshd
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      4515/postgres
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2356/master
tcp        0      0 0.0.0.0:10843           0.0.0.0:*               LISTEN      6607/python
tcp        0      0 127.0.0.1:6557          0.0.0.0:*               LISTEN      6607/python
tcp        0      0 127.0.0.1:6564          0.0.0.0:*               LISTEN      6608/python
tcp6       0      0 :::80                   :::*                    LISTEN      6653/httpd
tcp6       0      0 :::4949                 :::*                    LISTEN      6801/perl
tcp6       0      0 :::22                   :::*                    LISTEN      1229/sshd
tcp6       0      0 ::1:5432                :::*                    LISTEN      4515/postgres
tcp6       0      0 ::1:25                  :::*                    LISTEN      2356/master
tcp6       0      0 :::443                  :::*                    LISTEN      6653/httpd

Open a WEB browser :

ansible-tower

 

 

 

 

 

 

 

 

 

 

 

  • username : admin
  • password : your password

Then enter the license key you received from RedHat

ansible-tower1

 

 

 

 

 

 

 

 

 

 

 

 

PDF24    Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *


*