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