mirror of
https://github.com/geerlingguy/ansible-role-nginx.git
synced 2025-02-12 00:31:47 +01:00
Fixes #175: root_group var should be used for vhosts file, RedHat setup.
This commit is contained in:
parent
ba806a5c1a
commit
695e0dc519
@ -4,7 +4,7 @@
|
||||
src: nginx.repo.j2
|
||||
dest: /etc/yum.repos.d/nginx.repo
|
||||
owner: root
|
||||
group: root
|
||||
group: "{{ root_group }}"
|
||||
mode: 0644
|
||||
when: nginx_yum_repo_enabled
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
dest: "{{ nginx_vhost_path }}/{{ item.filename|default(item.server_name.split(' ')[0] ~ '.conf') }}"
|
||||
force: true
|
||||
owner: root
|
||||
group: root
|
||||
group: "{{ root_group }}"
|
||||
mode: 0644
|
||||
when: item.state|default('present') != 'absent'
|
||||
with_items: "{{ nginx_vhosts }}"
|
||||
|
Loading…
Reference in New Issue
Block a user