ansible-nas/roles/minidlna/tasks/main.yml
2021-02-21 19:50:07 +00:00

17 lines
519 B
YAML

---
- name: MiniDLNA Docker Container
docker_container:
name: minidlna
image: vladgh/minidlna
pull: true
volumes:
- "{{ minidlna_media_directory1 }}:/media1:rw"
- "{{ minidlna_media_directory2 }}:/media2:rw"
env:
MINIDLNA_MEDIA_DIR1: "/media1"
MINIDLNA_MEDIA_DIR2: "/media2"
MINIDLNA_FRIENDLY_NAME: "{{ minidlna_friendly_name }}"
MINIDLNA_PORT: "{{ minidlna_port }}"
restart_policy: unless-stopped
network_mode: host
memory: "{{ minidlna_memory }}"