Skip to content

Commit 14373fd

Browse files
author
Myztiq
committed
Converted to only add the env vars if we've got the key to add.
1 parent d9aadbb commit 14373fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ansible/group_vars/alpha-navi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ container_envs: >
3232
-e REDIS_CACERT={{ redis_ca_cert_path }}
3333
-e REDIS_IPADDRESS={{ redis_host_address }}
3434
-e REDIS_PORT={{ redis_tls_port }}
35-
-e INTERCOM_APP_ID = {{ navi_intercom_app_id | default('undefined') }}
36-
-e INTERCOM_API_KEY = {{ navi_intercom_api_key | default('undefined') }}
35+
{% if navi_intercom_app_id is defined %} -e INTERCOM_APP_ID={{ navi_intercom_app_id }} {% endif %}
36+
{% if navi_intercom_api_key is defined %} -e INTERCOM_API_KEY={{ navi_intercom_api_key }} {% endif %}
3737
3838
container_run_opts: >
3939
-h {{ name }}

0 commit comments

Comments
 (0)