Properly apply default when env lookup returns empty

This commit is contained in:
Yanis Guenane
2021-11-01 15:00:43 +01:00
parent 7eb6d0e0f5
commit fc713e7b73
7 changed files with 10 additions and 10 deletions

View File

@@ -84,7 +84,7 @@
- name: Set Postgres image URL
set_fact:
_postgres_image: "{{ _custom_postgres_image | default(lookup('env', 'RELATED_IMAGE_AWX_POSTGRES')) | default(_default_postgres_image) }}"
_postgres_image: "{{ _custom_postgres_image | default(lookup('env', 'RELATED_IMAGE_AWX_POSTGRES')) | default(_default_postgres_image, true) }}"
- name: Create management pod from templated deployment config
k8s: