diff --git a/roles/backup/vars/main.yml b/roles/backup/vars/main.yml index 52925369d..b4957c476 100644 --- a/roles/backup/vars/main.yml +++ b/roles/backup/vars/main.yml @@ -1,7 +1,7 @@ --- deployment_type: "awx" _postgres_image: quay.io/sclorg/postgresql-15-c9s -_postgres_image_version: 15 +_postgres_image_version: latest backup_complete: false database_type: "unmanaged" supported_pg_version: 15 diff --git a/roles/installer/tasks/database_configuration.yml b/roles/installer/tasks/database_configuration.yml index c587ea595..0ab8bcbbb 100644 --- a/roles/installer/tasks/database_configuration.yml +++ b/roles/installer/tasks/database_configuration.yml @@ -145,7 +145,8 @@ - _old_pg_version.stdout | default('0') | trim < supported_pg_version when: - managed_database - - this_awx['resources'][0]['status']['upgradedPostgresVersion'] | default('none') < supported_pg_version + - "'upgradedPostgresVersion' is in this_awx['resources'][0]['status']" + - (this_awx['resources'][0]['status']['upgradedPostgresVersion'] | default(false)) | ternary (this_awx['resources'][0]['status']['upgradedPostgresVersion'] < supported_pg_version, false) - old_postgres_pod['resources'] | length # upgrade is complete and old pg pod has been removed - block: diff --git a/roles/restore/vars/main.yml b/roles/restore/vars/main.yml index 6050a0cd1..c2d0a496b 100644 --- a/roles/restore/vars/main.yml +++ b/roles/restore/vars/main.yml @@ -2,7 +2,7 @@ deployment_type: "awx" _postgres_image: quay.io/sclorg/postgresql-15-c9s -_postgres_image_version: 15 +_postgres_image_version: latest backup_api_version: '{{ deployment_type }}.ansible.com/v1beta1' backup_kind: 'AWXBackup'