Fixing permissions
This commit is contained in:
parent
c9636b8287
commit
424dc8051f
2 changed files with 9 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
snipeit_ssl_crt: "/etc/ssl/dc-assets01/live/fullchain.pem"
|
||||
snipeit_ssl_key: "/etc/ssl/dc-assets01/live/privkey.pem"
|
||||
|
||||
snipeit_user: "snipeit"
|
||||
snipeit_user: "{{ ansible_user }}"
|
||||
|
||||
snipeit_install_path: "/opt/snipeit"
|
||||
|
||||
|
|
|
@ -147,6 +147,14 @@
|
|||
#version: master # version moves to main with v7
|
||||
become_user: "{{ snipeit_user }}"
|
||||
|
||||
- name: Create log file
|
||||
file:
|
||||
path: /opt/snipeit/storage/logs/laravel.log
|
||||
state: touch
|
||||
owner: "{{ snipeit_user }}"
|
||||
group: apache
|
||||
mode: '0775'
|
||||
|
||||
- name: Set owner to non-privileged user
|
||||
file:
|
||||
path: "{{ snipeit_install_path }}"
|
||||
|
|
Loading…
Reference in a new issue