1
0
Fork 0

Set nginx site dir group to www-data

This commit is contained in:
Daniele Tricoli 2021-01-28 01:22:43 +01:00
parent 9e2f0f292d
commit 0386d3a0e9
1 changed files with 5 additions and 0 deletions

View File

@ -3,12 +3,17 @@
file:
path: "{{ nginx_root }}/{{ item.servername }}"
state: directory
owner: root
group: www-data
with_items: "{{ nginx_vhosts }}"
- name: create vhost content directories
file:
path: "{{ nginx_root }}/{{ item.servername }}/html"
state: directory
owner: root
group: www-data
mode: 0775
with_items: "{{ nginx_vhosts }}"
- name: create vhost logs directories