fix static nginx user/group

This commit is contained in:
Robert Kaussow 2018-10-22 09:49:42 +02:00
parent 67049914d0
commit 9134bed85b

View File

@ -33,8 +33,8 @@
file:
path: "{{ item }}"
state: directory
owner: nginx
group: nginx
owner: "{{ nginx_user }}"
group: "{{ nginx_group }}"
mode: 0750
with_items:
- "{{ nginx_vhosts_dir }}"
@ -98,12 +98,12 @@
template:
src: var/www/vhosts/default/index.html.j2
dest: /var/www/vhosts/default/index.html
owner: nginx
group: nginx
owner: "{{ nginx_user }}"
group: "{{ nginx_group }}"
mode: 0750
when: nginx_default_page_enabled
become: True
become_user: nginx
become_user: "{{ nginx_user }}"
- block:
- name: Add default page configuration file