mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 03:38:41 +00:00
Merge branch 'master' into add-mylar
This commit is contained in:
commit
4821d8983a
4 changed files with 24 additions and 16 deletions
|
@ -25,7 +25,6 @@ tautulli_enabled: false
|
|||
# Media Sourcing
|
||||
get_iplayer_enabled: false
|
||||
jackett_enabled: false
|
||||
minidlna_enabled: false
|
||||
jellyfin_enabled: false
|
||||
|
||||
|
||||
|
@ -422,14 +421,6 @@ timemachine_share_name: Data
|
|||
timemachine_log_level: error
|
||||
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
|
||||
###
|
||||
|
|
9
nas.yml
9
nas.yml
|
@ -103,6 +103,11 @@
|
|||
- lidarr
|
||||
when: (lidarr_enabled | default(False))
|
||||
|
||||
- role: minidlna
|
||||
tags:
|
||||
- minidlna
|
||||
when: (minidlna_enabled | default(False))
|
||||
|
||||
- role: mylar
|
||||
tags:
|
||||
- mylar
|
||||
|
@ -238,10 +243,6 @@
|
|||
when: (guacamole_enabled | default(False))
|
||||
tags: guacamole
|
||||
|
||||
- import_tasks: tasks/minidlna.yml
|
||||
when: (minidlna_enabled | default(False))
|
||||
tags: minidlna
|
||||
|
||||
- import_tasks: tasks/get_iplayer.yml
|
||||
when: (get_iplayer_enabled | default(False))
|
||||
tags: get_iplayer
|
||||
|
|
15
roles/minidlna/defaults/main.yml
Normal file
15
roles/minidlna/defaults/main.yml
Normal 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"
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
- name: MiniDLNA Docker Container
|
||||
docker_container:
|
||||
name: minidlna
|
||||
|
@ -10,7 +11,7 @@
|
|||
MINIDLNA_MEDIA_DIR1: "/media1"
|
||||
MINIDLNA_MEDIA_DIR2: "/media2"
|
||||
MINIDLNA_FRIENDLY_NAME: "{{ minidlna_friendly_name }}"
|
||||
MINIDLNA_PORT: "8201"
|
||||
network_mode: host
|
||||
MINIDLNA_PORT: "{{ minidlna_port }}"
|
||||
restart_policy: unless-stopped
|
||||
memory: 1g
|
||||
network_mode: host
|
||||
memory: "{{ minidlna_memory }}"
|
Loading…
Reference in a new issue