diff --git a/roles/apache2/tasks/config.yml b/roles/apache2/tasks/config.yml index 9a77e08..83a4aba 100644 --- a/roles/apache2/tasks/config.yml +++ b/roles/apache2/tasks/config.yml @@ -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