Fix check for certificate existence
This commit is contained in:
parent
263262341a
commit
3d0a464d99
1 changed files with 1 additions and 1 deletions
|
@ -16,9 +16,9 @@
|
||||||
{%- set files = [] -%}
|
{%- set files = [] -%}
|
||||||
{%- for name, site in apache2_sites.items() -%}
|
{%- for name, site in apache2_sites.items() -%}
|
||||||
{%- if site.https_enabled | default(apache2_vhost_https_enabled) -%}
|
{%- if site.https_enabled | default(apache2_vhost_https_enabled) -%}
|
||||||
{%- endif -%}
|
|
||||||
{%- set _x = files.append(site.tls_certfile | default(apache2_tls_certfile)) -%}
|
{%- set _x = files.append(site.tls_certfile | default(apache2_tls_certfile)) -%}
|
||||||
{%- set _x = files.append(site.tls_keyfile | default(apache2_tls_keyfile)) -%}
|
{%- set _x = files.append(site.tls_keyfile | default(apache2_tls_keyfile)) -%}
|
||||||
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{{- files | unique | list -}}
|
{{- files | unique | list -}}
|
||||||
register: apache2_register_stat_tls_keypairs
|
register: apache2_register_stat_tls_keypairs
|
||||||
|
|
Loading…
Reference in a new issue