add minidlna

This commit is contained in:
PurpleNinja225 2021-02-02 19:22:20 -09:00
parent 871bf8f3b1
commit 6bbb60460a
4 changed files with 25 additions and 16 deletions

View file

@ -25,7 +25,6 @@ tautulli_enabled: false
# Media Sourcing # Media Sourcing
get_iplayer_enabled: false get_iplayer_enabled: false
jackett_enabled: false jackett_enabled: false
minidlna_enabled: false
jellyfin_enabled: false jellyfin_enabled: false
@ -435,14 +434,6 @@ timemachine_share_name: Data
timemachine_log_level: error timemachine_log_level: error
timemachine_port: "10445" timemachine_port: "10445"
###
### MiniDLNA
###
minidlna_media_directory1: "{{ movies_root }}"
minidlna_media_directory2: "{{ tv_root }}"
minidlna_friendly_name: "{{ ansible_nas_hostname }}"
minidlna_port: "8201"
### ###
### get_iplayer ### get_iplayer
### ###

View file

@ -103,6 +103,11 @@
- lidarr - lidarr
when: (lidarr_enabled | default(False)) when: (lidarr_enabled | default(False))
- role: minidlna
tags:
- minidlna
when: (minidlna_enabled | default(False))
- role: n8n - role: n8n
tags: tags:
- n8n_enabled - n8n_enabled
@ -237,10 +242,6 @@
when: (guacamole_enabled | default(False)) when: (guacamole_enabled | default(False))
tags: guacamole tags: guacamole
- import_tasks: tasks/minidlna.yml
when: (minidlna_enabled | default(False))
tags: minidlna
- import_tasks: tasks/get_iplayer.yml - import_tasks: tasks/get_iplayer.yml
when: (get_iplayer_enabled | default(False)) when: (get_iplayer_enabled | default(False))
tags: get_iplayer tags: get_iplayer

View file

@ -0,0 +1,15 @@
---
# enable or disable the application
minidlna_enabled: false
minidlna_available_externally: "false"
# directories
minidlna_media_directory1: "{{ movies_root }}"
minidlna_media_directory2: "{{ tv_root }}"
# network
minidlna_friendly_name: "{{ ansible_nas_hostname }}"
minidlna_port: "8201"
# specs
minidlna_memory: "1g"

View file

@ -1,3 +1,4 @@
---
- name: MiniDLNA Docker Container - name: MiniDLNA Docker Container
docker_container: docker_container:
name: minidlna name: minidlna
@ -6,11 +7,12 @@
volumes: volumes:
- "{{ minidlna_media_directory1 }}:/media1:rw" - "{{ minidlna_media_directory1 }}:/media1:rw"
- "{{ minidlna_media_directory2 }}:/media2:rw" - "{{ minidlna_media_directory2 }}:/media2:rw"
network_mode: "bridge"
env: env:
MINIDLNA_MEDIA_DIR1: "/media1" MINIDLNA_MEDIA_DIR1: "/media1"
MINIDLNA_MEDIA_DIR2: "/media2" MINIDLNA_MEDIA_DIR2: "/media2"
MINIDLNA_FRIENDLY_NAME: "{{ minidlna_friendly_name }}" MINIDLNA_FRIENDLY_NAME: "{{ minidlna_friendly_name }}"
MINIDLNA_PORT: "8201" MINIDLNA_PORT: "{{ minidlna_port }}"
network_mode: host
restart_policy: unless-stopped restart_policy: unless-stopped
memory: 1g network_mode: host
memory: "{{ minidlna_memory }}"