diff --git a/tasks/vhosts.yml b/tasks/vhosts.yml index 05af037..6616ecd 100644 --- a/tasks/vhosts.yml +++ b/tasks/vhosts.yml @@ -18,7 +18,7 @@ dest: "{{ nginx_vhost_path }}/{{ item.filename|default(item.server_name.split(' ')[0] ~ '.conf') }}" force: yes owner: root - group: root + group: "{{ root_group }}" mode: 0644 when: item.state|default('present') != 'absent' with_items: "{{ nginx_vhosts }}"