+ Filebrowser docker based service
This commit is contained in:
parent
d84ae44ef8
commit
c2091d2886
@ -2,8 +2,27 @@
|
||||
# the target host.
|
||||
---
|
||||
- hosts: leftcoastlab
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Install vsftpd package
|
||||
apt:
|
||||
update_cache: yes
|
||||
name: vsftpd
|
||||
- name: Include Vars
|
||||
include_vars:
|
||||
dir: ../vars
|
||||
|
||||
- name: Include FQDN
|
||||
include_vars:
|
||||
dir: ../defaults
|
||||
|
||||
- name: Setup Filebrowser Container
|
||||
community.docker.docker_container:
|
||||
name: filestash
|
||||
image: filebrowser/filebrowser
|
||||
restart_policy: always
|
||||
recreate: yes
|
||||
user: "{{FILES_UID}}:{{FILES_GID}}"
|
||||
volumes:
|
||||
- "{{FILES_HOME}}:/srv"
|
||||
ports:
|
||||
- "{{FILEBROWSER_PORT}}:{{FILEBROWSER_PORT}}"
|
||||
|
||||
|
||||
|
||||
|
@ -41,6 +41,8 @@
|
||||
dest: /etc/nginx/sites-available/
|
||||
loop:
|
||||
- ../files/git.lablad
|
||||
- ../files/music.lablad
|
||||
- ../files/files.lablad
|
||||
|
||||
- name: Enable Sites
|
||||
file:
|
||||
@ -49,6 +51,8 @@
|
||||
state: link
|
||||
loop:
|
||||
- git.lablad
|
||||
- music.lablad
|
||||
- files.lablad
|
||||
notify:
|
||||
- restart-nginx
|
||||
|
||||
|
@ -3,3 +3,4 @@
|
||||
DEBIAN_CODENAME: sid
|
||||
GITEA_PUB_PORT: 3000
|
||||
GITEA_SSH_PORT: 2222
|
||||
FILEBROWSER_PORT: 8080
|
||||
|
Loading…
Reference in New Issue
Block a user