fix static nginx user/group
This commit is contained in:
parent
67049914d0
commit
9134bed85b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user