apache2: create document root directories

This commit is contained in:
s3lph 2021-11-05 00:06:15 +01:00
parent 88a70b70ad
commit cb1b36732a

View file

@ -23,6 +23,15 @@
{{- 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:
src: etc/apache2/sites-available/site.conf.j2