From c98a2378c4a5ccb87c5699a7911483aa5ad0c4b9 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 1 Sep 2025 17:05:30 +0200 Subject: [PATCH] Added is defined condition --- roles/docker-container/templates/healthcheck/curl.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/docker-container/templates/healthcheck/curl.yml.j2 b/roles/docker-container/templates/healthcheck/curl.yml.j2 index f98fa040..861d5f36 100644 --- a/roles/docker-container/templates/healthcheck/curl.yml.j2 +++ b/roles/docker-container/templates/healthcheck/curl.yml.j2 @@ -3,7 +3,7 @@ - "CMD" - "curl" - "-f" -{% if container_hostname %} +{% if container_hostname is defined %} - "-H" - "Host: {{ container_hostname }}" {% endif %}