updated permissions; remove local dir before update

This commit is contained in:
muppeth 2023-12-26 21:54:41 +01:00
parent b46030fdd2
commit 6d4c3855d1
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
2 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,10 @@
---
- name: '[CONFIG] - Check if files dir exist'
stat:
path: '{{ lufi_upload_dir }}'
register: 'lufi_upload_dir_check'
- name: '[CONFIG] - Create files dir'
file:
path: '{{ lufi_upload_dir }}'
@ -7,6 +12,7 @@
owner: '{{ lufi_username }}'
group: '{{ lufi_group }}'
mode: '0700'
when: 'not lufi_upload_dir_check.exists'
- name: '[CONFIG] - Deploy lufi config'
template:

View File

@ -8,6 +8,10 @@
mode: 0644
notify: restart lufi
- name: '[INSTALL] - Remove local dir'
file:
path: '{{ lufi_app_dir }}'
state: 'absent'
- name: '[INSTALL] - Install / Update lufi'
command: 'carton install {{ lufi_build_options }}'
@ -15,4 +19,4 @@
chdir: '{{ lufi_app_dir }}'
become: yes
become_user: '{{ lufi_username }}'
notify: restart lufi
notify: restart lufi