Check Permissions; Build Always From Scratch #12
|
@ -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'
|
- name: '[CONFIG] - Create files dir'
|
||||||
file:
|
file:
|
||||||
path: '{{ lufi_upload_dir }}'
|
path: '{{ lufi_upload_dir }}'
|
||||||
|
@ -7,6 +12,7 @@
|
||||||
owner: '{{ lufi_username }}'
|
owner: '{{ lufi_username }}'
|
||||||
group: '{{ lufi_group }}'
|
group: '{{ lufi_group }}'
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
|
when: 'not lufi_upload_dir_check.exists'
|
||||||
|
|
||||||
- name: '[CONFIG] - Deploy lufi config'
|
- name: '[CONFIG] - Deploy lufi config'
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: restart lufi
|
notify: restart lufi
|
||||||
|
|
||||||
|
- name: '[INSTALL] - Remove local dir'
|
||||||
|
file:
|
||||||
|
path: '{{ lufi_app_dir }}'
|
||||||
|
state: 'absent'
|
||||||
|
|
||||||
- name: '[INSTALL] - Install / Update lufi'
|
- name: '[INSTALL] - Install / Update lufi'
|
||||||
command: 'carton install {{ lufi_build_options }}'
|
command: 'carton install {{ lufi_build_options }}'
|
||||||
|
@ -15,4 +19,4 @@
|
||||||
chdir: '{{ lufi_app_dir }}'
|
chdir: '{{ lufi_app_dir }}'
|
||||||
become: yes
|
become: yes
|
||||||
become_user: '{{ lufi_username }}'
|
become_user: '{{ lufi_username }}'
|
||||||
notify: restart lufi
|
notify: restart lufi
|
||||||
|
|
Loading…
Reference in New Issue