apache2: Fix certificate existence check, fix a2ensite
This commit is contained in:
parent
70bdf4e89a
commit
685f0a3d15
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
|||
follow: yes
|
||||
loop: |
|
||||
{%- set files = [] -%}
|
||||
{%- for name, site in apache2_sites | dict2items -%}
|
||||
{%- for name, site in apache2_sites.items() -%}
|
||||
{%- if site.https_enabled | default(apache2_vhost_https_enabled) -%}
|
||||
{%- endif -%}
|
||||
{%- set _x = files.append(site.tls_certfile | default(apache2_tls_certfile)) -%}
|
||||
|
@ -46,5 +46,5 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0777
|
||||
loop: "{{ apache2_sites }}"
|
||||
loop: "{{ apache2_sites.keys() }}"
|
||||
notify: reload apache2
|
||||
|
|
Loading…
Reference in a new issue