Ansible Tower offline installation on a Red Hat system

A few days ago Ansible released a new version of their enterprise product Ansible Tower. It’s a web interface on top of the ansible core and offers a lot of useful features. In the release notes is a new topic listed that is an important requirement for some customers of us, bundled installation support. It’s now possible to install the Ansible Tower without access to the internet. In this blog post we describe the few steps for an offline installation on a RHEL server.

Ansible Tower Documentation

Check out the official Ansible Tower installation guide for a detailed installation documentation. Ansible also published a quick installation guide that contains the most needed informations.

Pre-Steps

  • Verify that 10GB are available in /var
  • Subscribe to additional RPM channels
    • EPEL
    • Extras (RHEL7) / Optional (RHEL6)
  • Download the bundle source from Ansible

Installation-Steps

Transfer the package onto your host and unpack the bundle package. Switch into the temporary directory and follow this steps.

  • Install ansible core
    yum install -y ansible
  • Configure Ansible Tower installation
    ./configure
  • Start installation
    ./setup.sh
  • Enjoy and automate!
    http://<hostname>

Conclusion

As you see the installation of Ansible Tower is quite simple and we’re glad that Ansible responded to the requests of their customers and implemented the offline installation. Are you interested to try out the new Ansible Tower version? So don’t hesitate to contact us or request a free trial on this page.

9 Comments

  • ryan Reply

    I tried installing ansible-tower-setup-bundle-2.4.5-1.el7 the way you mentioned above but while running ./setup.sh I am facing few issues although I am giving correct ssh keys. Can you help. below is the errors.

    [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
    make sure become_method is ‘sudo’ (default).
    This feature will be removed in a
    future release. Deprecation warnings can be disabled by setting
    deprecation_warnings=False in ansible.cfg.

    PLAY [all] *********************************************************************

    TASK [setup] *******************************************************************
    The authenticity of host ‘nocmpc-.mp.com (10.53.34.35)’ can’t be established.
    ECDSA key fingerprint is 03:ee:ab:8c:fc:29:6a:94:9d:81:ed:0d:4a:1e:cb:7b.
    Are you sure you want to continue connecting (yes/no)? yes
    fatal: [nocmpc-.mp.com]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh.”, “unreachable”: true}

  • Kirti Reply

    Could you help in ansible offline installation for Ubuntu 14.0.4 as well!!

  • Ryan Reply

    I’m trying to perform an offline install of ansible tower 3.0.0 but keep getting ” fatal: [localhost]: FAILED => {“changed”: false, “failed”: true, “msg”: “No package matching ‘ansible-tower == 3.0.0’ found available, installed or updated”, “rc”: 0, “results”: []}

    Can you please assist with full directions to upgrade ansible offline using the ansible-tower.tar

    Thank you

  • Dhinesh Reply

    I am trying to install ansible tower in Centos machine 7.2 and the tower version 3.0.2 , I have installed the tower successfully , but I am not able to open the tower through browser . when I try to open the server using command ‘curl http://localhost‘ I could find the tower details but when I try to use my Public IP .. with the same command I am unable to open that .. Can you let me know where I am missing .

    • Pascal Stauffer Reply

      Hi there, is the service listening on the public IP or only on localhost? Please check this via netstat -anp. Or are there iptables rules active? And the other way would be to make a trace via tcpdump to see, what’s happening.

  • Yoga Reply

    Hi, am using CentOS 7.3.I got below issues while am trying to install tower 3.1.3
    Can you assist me to proceed this.
    TASK [preflight : Preflight check – Read in tower version] *******************************************************************************************
    fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “file not found: /var/lib/awx/.tower_version”}
    …ignoring

    TASK [migrations : Check Tower version for supervisor configuration] *********************************************************************************
    fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “cat /var/lib/awx/.tower_version”, “delta”: “0:00:00.003102”, “end”: “2017-07-12 13:01:22.631026”, “failed”: true, “rc”: 1, “start”: “2017-07-12 13:01:22.627924”, “stderr”: “cat: /var/lib/awx/.tower_version: No such file or directory”, “stderr_lines”: [“cat: /var/lib/awx/.tower_version: No such file or directory”], “stdout”: “”, “stdout_lines”: []}

  • Satyajit Reply

    I am getting bellow error while doing ./setup.sh

    TASK [preflight : Preflight check – Does the system have a standard umask?] ****
    fatal:10.0.9.7: FAILED! => {“changed”: false, “cmd”: “umask”, “delta”: “0:00:00.003165”, “end”: “2018-06-29 17:32:34.477871”, “failed”: true, “failed_when_result”: true, “rc”: 0, “start”: “2018-06-29 17:32:34.474706”, “stderr”: “”, “stdout”: “0027”, “stdout_lines”: [“0027”], “warnings”: []}

    Can you please check ?

  • Rolf Hansen Reply

    call Rolf Hansen DISA 301-225-9827 asap

Leave a Reply

Your e-mail address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.