diff --git a/roles/letsencrypt/templates/domains.txt.j2 b/roles/letsencrypt/templates/domains.txt.j2 index 11a2b2c..f313209 100644 --- a/roles/letsencrypt/templates/domains.txt.j2 +++ b/roles/letsencrypt/templates/domains.txt.j2 @@ -1,4 +1,4 @@ -{#{% for cert in letsencrypt_certs | default([]) %} +{% for cert in letsencrypt_certs | default([]) %} {{ cert.common_name }} {{ cert.alt_names | default([]) | join(' ') }} {% endfor %} {% if nginx_auto_letsencrypt_cert is defined and nginx_auto_letsencrypt_cert and nginx_vhosts is defined %} @@ -23,7 +23,7 @@ {% endif %} {% if graylog_letsencrypt_cert is defined and graylog_letsencrypt_cert not in letsencrypt_certs | default([]) | map(attribute='common_name') %} {{ graylog_letsencrypt_cert }} -{% endif %} #} +{% endif %} {% if zcs_letsencrypt is defined and zcs_letsencrypt and inventory_hostname not in letsencrypt_certs | default([]) | map(attribute='common_name') %} {{ inventory_hostname }} {{ zcs_vhosts | default([]) | join(' ') }} {% endif %}