apache2: create document root directories
This commit is contained in:
parent
88a70b70ad
commit
cb1b36732a
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue