From 8e1af6a2e1117b4d8a16470f8146f31f3d120295 Mon Sep 17 00:00:00 2001 From: s3lph Date: Tue, 1 Mar 2022 00:32:14 +0100 Subject: [PATCH] Add options for setting the webroot owner/group --- roles/apache2/tasks/config.yml | 4 ++-- roles/nginx/tasks/config.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/apache2/tasks/config.yml b/roles/apache2/tasks/config.yml index b2df1ef..831f22f 100644 --- a/roles/apache2/tasks/config.yml +++ b/roles/apache2/tasks/config.yml @@ -27,8 +27,8 @@ ansible.builtin.file: path: "{{ item.documentroot | default(apache2_vhost_documentroot) }}" state: directory - owner: {{ item.documentroot_owner | default(apache2_vhost_documentroot_owner) }} - group: {{ item.documentroot_group | default(apache2_vhost_documentroot_group) }} + owner: "{{ item.documentroot_owner | default(apache2_vhost_documentroot_owner) }}" + group: "{{ item.documentroot_group | default(apache2_vhost_documentroot_group) }}" mode: 0755 loop: "{{ apache2_sites.values() }}" diff --git a/roles/nginx/tasks/config.yml b/roles/nginx/tasks/config.yml index 5a4c92e..dfe2720 100644 --- a/roles/nginx/tasks/config.yml +++ b/roles/nginx/tasks/config.yml @@ -31,8 +31,8 @@ ansible.builtin.file: path: "{{ item.documentroot | default(nginx_vhost_documentroot) }}" state: directory - owner: {{ item.documentroot_owner | default(nginx_vhost_documentroot_owner) }} - group: {{ item.documentroot_group | default(nginx_vhost_documentroot_group) }} + owner: "{{ item.documentroot_owner | default(nginx_vhost_documentroot_owner) }}" + group: "{{ item.documentroot_group | default(nginx_vhost_documentroot_group) }}" mode: 0755 loop: "{{ nginx_sites.values() }}"