update awx

Hello guys,

I am wondering what would be the best way to update my awx .

Do you have any step by step guide that works without losing data?

Regards
RM

Hi RM,

AWX does not provide any integrated solution to perform backup and restore and therefore the upgrades and migrations can only be performed as a fresh installation. Also, the migration of data from the old AWX instance to the new upgraded AWX instance would be partial as system settings, AWX configurations and permissions would have to be migrated manually.

There are two options available to perform data migration from the old AWX instance to the new upgraded AWX instance:

  • Making use of tower-cli send/receive feature as described in following link: https://github.com/ansible/awx/blob/devel/DATA_MIGRATION.md . Please note, this option would not migrate system settings, scheduled jobs and permissions. These are to be migrated manually.

  • Taking a backup of the directory where the PostgreSQL DB is stored and doing a fresh installation after setting postgres_data_dir parameter in inventory file. However, please note this option would not perform the backup of venv variables and configuration files of AWX. Below are the detailed steps:

  • Stop the PostgreSQL docker container and copy the content of /var/lib/pgdocker directory on AWX node to the same directory on new AWX node.

  • Edit inventory file in installer directory on new AWX node and provide the location of pgdocker directory in postgres_data_dir parameter.

  • Install AWX as a fresh installation on new AWX node.

  • ansible-playbook -i inventory install.yml –vv

Hope this is helpful !

Best Regards,
Shivharsh

Permissions on assets should be exported as part of the tower-cli export process.

-John