mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
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:
@@ -26,7 +26,7 @@ Example Playbook
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
roles:
|
||||
- awx
|
||||
- installer
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user