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
|
follow: yes
|
||||||
loop: |
|
loop: |
|
||||||
{%- set files = [] -%}
|
{%- 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) -%}
|
{%- if site.https_enabled | default(apache2_vhost_https_enabled) -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- set _x = files.append(site.tls_certfile | default(apache2_tls_certfile)) -%}
|
{%- set _x = files.append(site.tls_certfile | default(apache2_tls_certfile)) -%}
|
||||||
|
@ -46,5 +46,5 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0777
|
mode: 0777
|
||||||
loop: "{{ apache2_sites }}"
|
loop: "{{ apache2_sites.keys() }}"
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
Loading…
Reference in a new issue