fix: Make basic install without operator works (#1875)

- Update role name for README.md
  - Avoid the this_awx['resources'][0] is undefined in database_configuration.yml
  - Add update_status variable to include or not the update_status.yml
  - metrics_utility_enabled exists in CRD but not as variable

Co-authored-by: Christian Adams <chadams@redhat.com>
This commit is contained in:
Chi Cuong HA
2024-07-03 21:12:47 +02:00
committed by GitHub
parent 0444ae31db
commit cdab3dd538
5 changed files with 13 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ Example Playbook
- hosts: localhost
connection: local
roles:
- awx
- installer
License
-------

View File

@@ -443,6 +443,9 @@ ldap_password_secret: ''
# Secret to lookup that provides the custom CA trusted bundle
bundle_cacert_secret: ''
# Set false for basic install without operator
update_status: true
# Whether secrets should be garbage collected
# on teardown
#

View File

@@ -153,6 +153,7 @@
set_fact:
_previous_upgraded_pg_version: "{{ this_awx['resources'][0]['status']['upgradedPostgresVersion'] | default(false) }}"
when:
- this_awx['resources'][0] is defined
- "'upgradedPostgresVersion' in this_awx['resources'][0]['status']"
- name: Check if postgres pod is running an older version

View File

@@ -104,14 +104,16 @@
- name: Enable optional metrics-utility
include_tasks: enable_metrics_utility.yml
when: _metrics_utility_enabled | bool
when: _metrics_utility_enabled | default(false) | bool
- name: Enable optional metrics-utility for Redhat Console
include_tasks: enable_metrics_utility_console.yml
when: _metrics_utility_console_enabled | bool
when: _metrics_utility_console_enabled | default(false) | bool
- name: Update status variables
include_tasks: update_status.yml
when: update_status | bool
- name: Cleanup & Set garbage collection refs
include_tasks: cleanup.yml