Fixes #175: root_group var should be used for vhosts file, RedHat setup.

This commit is contained in:
Jeff Geerling 2018-11-21 20:31:12 -06:00
parent ba806a5c1a
commit 695e0dc519
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 }}"