Install and upgrade awx

** This is not valid for awx after 17.1.0 **

Install

mkdir -p /opt/awx
cd /opt/awx
vi vars.yml
tar zxf /tmp/16.0.0.tar.gz
cd awx-16.0.0/installer/
ansible-playbook -i inventory install.yml -e @/opt/awx/vars.yml 

vars.yml

wx_task_hostname: 'awx'
awx_web_hostname: 'awxweb'
host_port: '80'
host_port_ssl: '443'
ssl_certificate: '/etc/ssl/certs/fullchain.pem'
ssl_certificate_key: '/etc/ssl/certs/privkey.pem'
pg_username: 'awx'
pg_password: 'awxpass'
pg_database: 'awx'
admin_user: 'admin'
admin_password: 'sen10nel'
secret_key: 'awxsecret'
postgres_data_dir: "/opt/awx/pgdocker"
docker_compose_dir: "/opt/awx/awxcompose"

Upgrade

Download new version from https://github.com/ansible/awx/releases

cd /opt/awx
tar zxf /tmp/17.0.0.tar.gz
cd awx-17.0.0/installer/
ansible-playbook -i inventory install.yml -e @/opt/awx/vars.yml