apache2: Fix certificate existence check

This commit is contained in:
s3lph 2021-04-26 01:16:11 +02:00
parent 5ff2d709a7
commit 70bdf4e89a
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
---
apache2_vhost_serveradmin: root@localhost
apache2_vhost_serveradmin: webmaster@localhost
apache2_vhost_serveraliases: []
apache2_vhost_documentroot: /var/www/html
apache2_vhost_loglevel: warn

View file

@ -18,7 +18,7 @@
{%- 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_keytfile | default(apache2_tls_keyfile)) -%}
{%- set _x = files.append(site.tls_keyfile | default(apache2_tls_keyfile)) -%}
{%- endfor -%}
{{- files | unique | list -}}
register: apache2_register_stat_tls_keypairs