rice/docker-host/setup/tasks/file-server.yml

29 lines
655 B
YAML
Raw Normal View History

2022-02-22 18:10:18 +00:00
# This playbook goes through the process of setting up a simple FTP server on
# the target host.
---
- hosts: leftcoastlab
2022-04-04 05:21:33 +00:00
become: yes
2022-02-22 18:10:18 +00:00
tasks:
2022-04-04 05:21:33 +00:00
- name: Include Vars
include_vars:
dir: ../vars
2022-04-04 05:59:07 +00:00
- name: Ensure Filebrowser Volume Exists
community.docker.docker_volume:
name: file-storage
state: present
2022-04-04 05:21:33 +00:00
- name: Setup Filebrowser Container
community.docker.docker_container:
2022-04-04 05:59:07 +00:00
name: filebrowser
2022-04-04 05:21:33 +00:00
image: filebrowser/filebrowser
restart_policy: always
recreate: yes
volumes:
2022-04-04 05:59:07 +00:00
- "file-storage:/srv"
2022-04-04 05:21:33 +00:00
ports:
2022-04-04 05:59:07 +00:00
- "{{FILEBROWSER_PORT}}:80"
2022-04-04 05:21:33 +00:00