diff --git a/roles/apache2/tasks/config.yml b/roles/apache2/tasks/config.yml index de737c3..d73869d 100644 --- a/roles/apache2/tasks/config.yml +++ b/roles/apache2/tasks/config.yml @@ -22,6 +22,15 @@ {%- endfor -%} {{- files | unique | list -}} register: apache2_register_stat_tls_keypairs + +- name: create apache document roots + ansible.builtin.file: + path: "{{ item.documentroot | default(apache2_vhost_documentroot) }}" + state: directory + owner: www-data + group: www-data + mode: 0755 + loop: "{{ apache2_sites.values() }}" - name: render apache site configs template: