This is a sample ansible
role to deploy and configure filebrowser
.
This repository is described in details in the post: Filebrowser introduction
---
- hosts: all
gather_facts: true
become: true
vars:
# Where to store data uploaded to filebrowser
storage_data_dir: '/path/to/filebrowser/root_dir'
sysconfig_options: "--disable-exec --disable-preview-resize --disable-thumbnails --address 127.0.0.1 --port 8080 --baseurl '/private/location/' --username admin"
tasks:
- import_role:
name: 'filebrowser'
- name: 'Configure HTTPd reverse proxy for filebrowser'
import_role:
name: 'filebrowser'
tasks_from: 'reverse_proxy.yml'
- name: 'Configure fail2ban for filebrowser'
import_role:
name: 'filebrowser'
tasks_from: 'fail2ban.yml'