From 3b30ef41004989403db03197f96cc954a634adb0 Mon Sep 17 00:00:00 2001 From: lhahn Date: Wed, 14 Oct 2026 17:59:37 +0200 Subject: [PATCH] Fix certbot -d argument for new certificates trim_blocks removed the newline after {% endif %}, so the command became '-d example.org-m mail@...' and certbot refused it. Only hit for domains without an existing certificate. Co-Authored-By: Claude Opus 5.5 --- tasks/letsencrypt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/letsencrypt.yml b/tasks/letsencrypt.yml index efbbaf2..aef9cab 100755 --- a/tasks/letsencrypt.yml +++ b/tasks/letsencrypt.yml @@ -33,7 +33,7 @@ cmd: | certbot --nginx - -d {% if cert_domain is not string and cert_domain is iterable %}{{ cert_domain | join(',') }}{% else %}{{ cert_domain }}{% endif %} + -d {{ cert_domain | join(',') if (cert_domain is not string and cert_domain is iterable) else cert_domain }} -m {{ letsencrypt_mail_address }} --agree-tos --noninteractive