-
Notifications
You must be signed in to change notification settings - Fork 5
/
filebrowser.yml
51 lines (44 loc) · 1.32 KB
/
filebrowser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
- hosts: homelab
vars:
application: filebrowser
docker_network: "{{ networks.pub }}"
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: "{{ common_user }}"
group: "{{ common_group }}"
mode: "0771"
- name: Touch config
ansible.builtin.file:
path: "{{ config_directory }}/filebrowser.json"
state: touch
modification_time: preserve
access_time: preserve
mode: "0640"
- name: Touch DB
ansible.builtin.file:
path: "{{ config_directory }}/filebrowser.db"
state: touch
modification_time: preserve
access_time: preserve
mode: "0640"
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: filebrowser/filebrowser:v2.31.2
user: "{{ common_user_id }}:{{ common_group_id }}"
volumes:
- "{{ common_directory_storage }}:/srv"
- "{{ config_directory }}/filebrowser.db:/database.db"
- "{{ config_directory }}/filebrowser.json:/.filebrowser.json"
traefik:
- port: 80
homepage:
name: File Browser
group: Sharing
weight: 880
description: "Web file browser"