[enhancement] restore postgres database if external db (#1211)

* restore postgres fix resolvable_db_host

set the resolvable_db_host ansible variable based on the db deployment
This commit is contained in:
Joel
2023-02-22 19:56:38 +01:00
committed by GitHub
parent 81939cb521
commit a3c28be98a

View File

@@ -66,9 +66,8 @@
- name: Set full resolvable host name for postgres pod
set_fact:
resolvable_db_host: "{{ awx_postgres_host }}.{{ ansible_operator_meta.namespace }}.svc.{{ cluster_name }}"
resolvable_db_host: '{{ (awx_postgres_type == "managed") | ternary(awx_postgres_host + "." + ansible_operator_meta.namespace + ".svc." + cluster_name, awx_postgres_host) }}' # yamllint disable-line rule:line-length
no_log: "{{ no_log }}"
when: awx_postgres_type == 'managed'
- name: Set pg_restore command
set_fact: