Skip to content

Tower install

Installl Ansible

$ sudo apt-get install software-properties-common $ sudo apt-add-repository ppa:ansible/ansible $ sudo apt-get update $ sudo apt-get install ansible

Install docker and docker-py python module

curl -fsSL | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable" sudo apt-get update sudo apt-get install docker-ce sudo apt install docker-compose sudo apt-get install python-pip sudo pip install docker

Clone the AWX repo

git clone cd awx/installer

  • Change the pgsql data directory to /apps/ in inventory file

ansible-playbook -i inventory install.yml

  • The default administrator username is admin, and the password is password

If a host is reinstalled and has a different key in ‘known_hosts’, this will result in an error message until corrected. If a host is not initially in ‘known_hosts’ this will result in prompting for confirmation of the key, which results in an interactive experience if using Ansible, from say, cron. You might not want this.

host_key_checking = False
Alternatively this can be set by an environment variable: