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 %}