ansible-nas/roles/minidlna/tasks/main.yml

18 lines
519 B
YAML
Raw Normal View History

2021-02-03 04:22:20 +00:00
---
2020-05-08 06:11:22 +00:00
- name: MiniDLNA Docker Container
2019-03-01 23:13:11 +00:00
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 }}"
2021-02-03 04:22:20 +00:00
MINIDLNA_PORT: "{{ minidlna_port }}"
2019-03-01 23:13:11 +00:00
restart_policy: unless-stopped
2021-02-03 04:22:20 +00:00
network_mode: host
2021-02-21 19:50:07 +00:00
memory: "{{ minidlna_memory }}"