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