✨: add shaarli to managed webapps
This commit is contained in:
25
roles/shaarli/tasks/main.yml
Normal file
25
roles/shaarli/tasks/main.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
|
||||
- name: Install Shaarli
|
||||
ansible.builtin.unarchive:
|
||||
remote_src: true
|
||||
src: "{{ shaarli_url }}"
|
||||
dest: "{{ shaarli_local_path }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "a-rwx,u+rwX,g+rX"
|
||||
extra_opts: ['--strip-components=1']
|
||||
exclude:
|
||||
- "{{ shaarli_local_path }}/data"
|
||||
|
||||
- name: Check writable dirs
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
dest: "{{ shaarli_local_path }}/{{ item }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "g+w"
|
||||
loop:
|
||||
- "data"
|
||||
- "tmp"
|
||||
- "pagecache"
|
Reference in New Issue
Block a user