From 351e1202b224a3b4a492bb81c595b58755265f3a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 29 Jul 2021 17:04:33 +0200 Subject: [PATCH] Fix Caddyfile template for undefined email --- roles/caddy/templates/Caddyfile.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/caddy/templates/Caddyfile.j2 b/roles/caddy/templates/Caddyfile.j2 index 68ceb47..864da41 100644 --- a/roles/caddy/templates/Caddyfile.j2 +++ b/roles/caddy/templates/Caddyfile.j2 @@ -1,6 +1,6 @@ { -{%- if caddy_email is not none %} - email {{ caddy_email }} +{%- if caddy_email is not undefined and not none %} + email "{{ caddy_email }}" {% endif %} {% if caddy_tls_use_staging is sameas true %}