diff --git a/tasks/install.yml b/tasks/install.yml index 1f5a507..cf39594 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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