# This playbook goes through the process of setting up a simple FTP server on
# the target host.
---
- hosts: atlas
  become: yes
  tasks:
    - name: Fetch vars for getting mount points
      include_vars:
        file: ../../vars/drives.yml
    - name: Setup Filebrowser Container
      community.docker.docker_container:
        name: filebrowser
        image: filebrowser/filebrowser
        restart_policy: always
        volumes:
          - "{{ FILEBROWSER_MOUNT_POINT }}/files:/srv"
        ports:
          - "8000:80"
        user: "0:0"