mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
The TLS lookup has been renamed from `tls_resolve` to `tls` to better reflect its responsibility as a strict TLS state resolver. This refactor updates all usages across the codebase, including: - lookup plugins and internal helpers - roles, vars, tasks, and templates - tests, stubs, and error messages - documentation and changelog references Behavior, lookup API, and semantics remain unchanged. https://chatgpt.com/share/6985e635-5a94-800f-b794-937e566ee308
14 lines
262 B
Django/Jinja
14 lines
262 B
Django/Jinja
server
|
|
{
|
|
server_name {{ domain }};
|
|
listen 80;
|
|
listen [::]:80;
|
|
location /
|
|
{
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
{% if (lookup('tls', domain, 'mode') == 'letsencrypt') %}
|
|
{% include 'acme.conf.j2' %}
|
|
{% endif %}
|
|
}
|