roles/nginx: Add comments about defaults in templates
It would be bettwe to set these defaults in the role's defaults, but we can't because they exist in dicts for each of the host's sites. Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
86ee36da77
commit
27a4abfcfd
@ -1,3 +1,4 @@
|
|||||||
|
{# helper variables and per-site defaults that we can't set in role defaults #}
|
||||||
{% set domain_name = item.nginx_domain_name %}
|
{% set domain_name = item.nginx_domain_name %}
|
||||||
{# assume HSTS is off unless a vhost explicitly sets it to "yes" #}
|
{# assume HSTS is off unless a vhost explicitly sets it to "yes" #}
|
||||||
{% set enable_hsts = item.nginx_enable_hsts | default("no") %}
|
{% set enable_hsts = item.nginx_enable_hsts | default("no") %}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{# helper variables and per-site defaults that we can't set in role defaults #}
|
||||||
{% set domain_name = item.nginx_domain_name %}
|
{% set domain_name = item.nginx_domain_name %}
|
||||||
{% set domain_aliases = item.nginx_domain_aliases | default("") %}
|
{% set domain_aliases = item.nginx_domain_aliases | default("") %}
|
||||||
{% set enable_https = item.nginx_enable_https | default("no") %}
|
{% set enable_https = item.nginx_enable_https | default("no") %}
|
||||||
|
Loading…
Reference in New Issue
Block a user