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

pull/176/head 2.6.2
Jeff Geerling 4 years ago
parent ba806a5c1a
commit 695e0dc519
  1. 2
      tasks/setup-RedHat.yml
  2. 2
      tasks/vhosts.yml

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