Fixing permissions

This commit is contained in:
Tyler Hale 2024-06-18 06:12:46 -06:00
parent c9636b8287
commit 424dc8051f
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96
2 changed files with 9 additions and 1 deletions

View file

@ -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"

View file

@ -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 }}"