32 lines
771 B
YAML
32 lines
771 B
YAML
# This playbook goes through the process of setting up a simple FTP server on
|
|
# the target host.
|
|
---
|
|
- hosts: leftcoastlab
|
|
become: yes
|
|
tasks:
|
|
- name: Include Vars
|
|
include_vars:
|
|
dir: ../vars
|
|
|
|
- name: Ensure Filebrowser Volume Exists
|
|
community.docker.docker_volume:
|
|
name: file-storage
|
|
state: present
|
|
|
|
- name: Setup Filebrowser Container
|
|
community.docker.docker_container:
|
|
name: filebrowser
|
|
image: filebrowser/filebrowser
|
|
restart_policy: always
|
|
recreate: yes
|
|
volumes:
|
|
- "file-storage:/srv"
|
|
ports:
|
|
- "{{FILEBROWSER_PORT}}:80"
|
|
log_driver: loki
|
|
log_options:
|
|
loki-url: "http://localhost:{{LOKI_PORT}}/loki/api/v1/push"
|
|
|
|
|
|
|