mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 11:38:47 +00:00
Merge branch 'master' into role-migration
This commit is contained in:
commit
7040c1279e
6 changed files with 58 additions and 36 deletions
|
@ -16,12 +16,10 @@
|
||||||
###
|
###
|
||||||
|
|
||||||
# Media Sourcing
|
# Media Sourcing
|
||||||
minidlna_enabled: false
|
|
||||||
jellyfin_enabled: false
|
jellyfin_enabled: false
|
||||||
|
|
||||||
|
|
||||||
youtubedlmaterial_enabled: false
|
youtubedlmaterial_enabled: false
|
||||||
mylar_enabled: false
|
|
||||||
|
|
||||||
# Music
|
# Music
|
||||||
mymediaforalexa_enabled: false
|
mymediaforalexa_enabled: false
|
||||||
|
@ -283,18 +281,6 @@ homebridge_user_id: "0"
|
||||||
homebridge_group_id: "0"
|
homebridge_group_id: "0"
|
||||||
homebridge_port: "8087"
|
homebridge_port: "8087"
|
||||||
|
|
||||||
###
|
|
||||||
### Mylar
|
|
||||||
###
|
|
||||||
mylar_available_externally: "false"
|
|
||||||
mylar_data_directory: "{{ docker_home }}/mylar"
|
|
||||||
mylar_comics_directory: "{{ comics_root }}"
|
|
||||||
mylar_downloads_directory: "{{ downloads_root }}"
|
|
||||||
mylar_port_http: "8585"
|
|
||||||
mylar_user_id: "0"
|
|
||||||
mylar_group_id: "0"
|
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### YouTubeDL-Material
|
### YouTubeDL-Material
|
||||||
###
|
###
|
||||||
|
@ -407,12 +393,7 @@ 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"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### mymediaforalexa
|
### mymediaforalexa
|
||||||
|
|
20
nas.yml
20
nas.yml
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
- role: jackett
|
- role: jackett
|
||||||
tags:
|
tags:
|
||||||
- jackett
|
- jackettfalse
|
||||||
when: (jackett_enabled | default(False))
|
when: (jackett_enabled | default(False))
|
||||||
|
|
||||||
- role: lidarr
|
- role: lidarr
|
||||||
|
@ -108,6 +108,16 @@
|
||||||
- lidarr
|
- lidarr
|
||||||
when: (lidarr_enabled | default(False))
|
when: (lidarr_enabled | default(False))
|
||||||
|
|
||||||
|
- role: minidlna
|
||||||
|
tags:
|
||||||
|
- minidlna
|
||||||
|
when: (minidlna_enabled | default(False))
|
||||||
|
|
||||||
|
- role: mylar
|
||||||
|
tags:
|
||||||
|
- mylar
|
||||||
|
when: (mylar_enabled | default(False))
|
||||||
|
|
||||||
- role: n8n
|
- role: n8n
|
||||||
tags:
|
tags:
|
||||||
- n8n_enabled
|
- n8n_enabled
|
||||||
|
@ -217,10 +227,6 @@
|
||||||
when: (thelounge_enabled | default(False))
|
when: (thelounge_enabled | default(False))
|
||||||
tags: thelounge
|
tags: thelounge
|
||||||
|
|
||||||
- import_tasks: tasks/mylar.yml
|
|
||||||
when: (mylar_enabled | default(False))
|
|
||||||
tags: mylar
|
|
||||||
|
|
||||||
- import_tasks: tasks/glances.yml
|
- import_tasks: tasks/glances.yml
|
||||||
when: (glances_enabled | default(False))
|
when: (glances_enabled | default(False))
|
||||||
tags: glances
|
tags: glances
|
||||||
|
@ -249,10 +255,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/mymediaforalexa.yml
|
- import_tasks: tasks/mymediaforalexa.yml
|
||||||
when: (mymediaforalexa_enabled | default(False))
|
when: (mymediaforalexa_enabled | default(False))
|
||||||
tags: mymediaforalexa
|
tags: mymediaforalexa
|
||||||
|
|
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
|
- name: MiniDLNA Docker Container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: minidlna
|
name: minidlna
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
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 }}"
|
21
roles/mylar/defaults/main.yml
Normal file
21
roles/mylar/defaults/main.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
# enable or disable the application
|
||||||
|
mylar_enabled: false
|
||||||
|
mylar_available_externally: "false"
|
||||||
|
|
||||||
|
# directories
|
||||||
|
mylar_data_directory: "{{ docker_home }}/mylar"
|
||||||
|
mylar_comics_directory: "{{ comics_root }}"
|
||||||
|
mylar_downloads_directory: "{{ downloads_root }}"
|
||||||
|
|
||||||
|
|
||||||
|
# uid / gid
|
||||||
|
mylar_user_id: "0"
|
||||||
|
mylar_group_id: "0"
|
||||||
|
|
||||||
|
# network
|
||||||
|
mylar_hostname: "mylar"
|
||||||
|
mylar_port_http: "8585"
|
||||||
|
|
||||||
|
# specs
|
||||||
|
mylar_memory: "1g"
|
|
@ -1,12 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: Create Mylar Directory
|
- name: Create Mylar Directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
# mode: 0755
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ mylar_data_directory }}/config"
|
- "{{ mylar_data_directory }}/config"
|
||||||
|
|
||||||
- name: Mylar
|
- name: mylar Docker Container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: mylar
|
name: mylar
|
||||||
image: linuxserver/mylar
|
image: linuxserver/mylar
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
- "{{ mylar_comics_directory }}:/comics:rw"
|
- "{{ mylar_comics_directory }}:/comics:rw"
|
||||||
- "{{ mylar_downloads_directory }}:/downloads:rw"
|
- "{{ mylar_downloads_directory }}:/downloads:rw"
|
||||||
- "{{ mylar_data_directory }}/config:/config:rw"
|
- "{{ mylar_data_directory }}/config:/config:rw"
|
||||||
|
network_mode: "bridge"
|
||||||
ports:
|
ports:
|
||||||
- "{{ mylar_port_http }}:8090"
|
- "{{ mylar_port_http }}:8090"
|
||||||
env:
|
env:
|
||||||
|
@ -22,10 +24,10 @@
|
||||||
PUID: "{{ mylar_user_id }}"
|
PUID: "{{ mylar_user_id }}"
|
||||||
PGID: "{{ mylar_group_id }}"
|
PGID: "{{ mylar_group_id }}"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: 1g
|
memory: "{{ mylar_memory }}"
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "{{ mylar_available_externally }}"
|
traefik.enable: "{{ mylar_available_externally }}"
|
||||||
traefik.http.routers.mylar.rule: "Host(`mylar.{{ ansible_nas_domain }}`)"
|
traefik.http.routers.mylar.rule: "Host(`{{ mylar_hostname }}.{{ ansible_nas_domain }}`)"
|
||||||
traefik.http.routers.mylar.tls.certresolver: "letsencrypt"
|
traefik.http.routers.mylar.tls.certresolver: "letsencrypt"
|
||||||
traefik.http.routers.mylar.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
traefik.http.routers.mylar.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||||
traefik.http.routers.mylar.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
traefik.http.routers.mylar.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
Loading…
Reference in a new issue