This section covers changes that you should keep in mind as you attempt to upgrade your Ansible Tower Instance
./configure/
as part of the initial setup.tower_setup_conf.yml
is no long used. Instead, you should now edit the inventory file in the /ansible-tower-setup-<tower_version>/
directory.Download and then extract the Ansible Tower installation/upgrade tool: http://releases.ansible.com/ansible-tower/setup/
root@localhost:~$ tar xvzf ansible-tower-setup-latest.tar.gz
root@localhost:~$ cd ansible-tower-setup-<tower_version>
To install or upgrade, start by editing the inventory file in the ansible-tower-setup-<tower_version>
directory, replacing <tower_version>
with the version number, such as 2.4.5
or 3.0.0
. directory.
If you are performing an installation, you can supply any necessary passwords here.
For those who are upgrading, your prior configuration will migrate over and filling out the passwords in the inventory file is unnecessary.
admin_password='password'
redis_password='password'
pg_password='password'
As an example:
[primary]
localhost ansible_connection=local
[secondary]
[database]
[all:vars]
admin_password='password'
redis_password='password'
pg_host=''
pg_port=''
pg_database='awx'
pg_username='awx'
pg_password='password'
Once any necessary changes have been made, you are ready to run ./setup.sh
.
Note
Root access to the remote machines is required. With Ansible, this can be achieved in different ways:
- ansible_ssh_user=root ansible_ssh_password=”your_password_here” inventory host or group variables
- ansible_ssh_user=root ansible_ssh_private_key_file=”path_to_your_keyfile.pem” inventory host or group variables
- ANSIBLE_BECOME_METHOD=’sudo’ ANSIBLE_BECOME=True ./setup.sh
- ANSIBLE_SUDO=True ./setup.sh
Note
Ansible Tower 3.0 simplifies installation and removes the need to run ./configure/
as part of the installation setup. Users of older versions should follow the instructions available in the v.2.4.5 (or earlier) releases of the Tower Documentation available at:
http://docs.ansible.com/
The Tower setup playbook script uses the inventory
file and is invoked as ./setup.sh
from the path where you unpacked the Tower installer tarball.
root@localhost:~$ ./setup.sh
The setup script takes the following arguments:
-i INVENTORY_FILE
– Path to Ansible inventory file (default: inventory)-e EXTRA_VARS
– Set additional Ansible variables as key=value or YAML/JSON (i.e. -e bundle_install=false
forces an online installation)-b
– Perform a database backup in lieu of installing-r
– Perform a database restore in lieu of installing-h
– Show this help message and exit