Add options for setting the webroot owner/group

This commit is contained in:
s3lph 2022-03-01 00:32:14 +01:00
parent b95043b4df
commit 8e1af6a2e1
2 changed files with 4 additions and 4 deletions

View file

@ -27,8 +27,8 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ item.documentroot | default(apache2_vhost_documentroot) }}" path: "{{ item.documentroot | default(apache2_vhost_documentroot) }}"
state: directory state: directory
owner: {{ item.documentroot_owner | default(apache2_vhost_documentroot_owner) }} owner: "{{ item.documentroot_owner | default(apache2_vhost_documentroot_owner) }}"
group: {{ item.documentroot_group | default(apache2_vhost_documentroot_group) }} group: "{{ item.documentroot_group | default(apache2_vhost_documentroot_group) }}"
mode: 0755 mode: 0755
loop: "{{ apache2_sites.values() }}" loop: "{{ apache2_sites.values() }}"

View file

@ -31,8 +31,8 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ item.documentroot | default(nginx_vhost_documentroot) }}" path: "{{ item.documentroot | default(nginx_vhost_documentroot) }}"
state: directory state: directory
owner: {{ item.documentroot_owner | default(nginx_vhost_documentroot_owner) }} owner: "{{ item.documentroot_owner | default(nginx_vhost_documentroot_owner) }}"
group: {{ item.documentroot_group | default(nginx_vhost_documentroot_group) }} group: "{{ item.documentroot_group | default(nginx_vhost_documentroot_group) }}"
mode: 0755 mode: 0755
loop: "{{ nginx_sites.values() }}" loop: "{{ nginx_sites.values() }}"