mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 19:48:47 +00:00
Move Sonarr to ansible role
This commit is contained in:
parent
8d5cfc9dc0
commit
88a0c46595
4 changed files with 22 additions and 17 deletions
|
@ -23,8 +23,6 @@ pyload_enabled: false
|
||||||
tautulli_enabled: false
|
tautulli_enabled: false
|
||||||
|
|
||||||
# Media Sourcing
|
# Media Sourcing
|
||||||
sonarr_enabled: false # tv
|
|
||||||
|
|
||||||
get_iplayer_enabled: false
|
get_iplayer_enabled: false
|
||||||
jackett_enabled: false
|
jackett_enabled: false
|
||||||
minidlna_enabled: false
|
minidlna_enabled: false
|
||||||
|
@ -315,16 +313,6 @@ mylar_port_http: "8585"
|
||||||
mylar_user_id: "0"
|
mylar_user_id: "0"
|
||||||
mylar_group_id: "0"
|
mylar_group_id: "0"
|
||||||
|
|
||||||
###
|
|
||||||
### Sonarr
|
|
||||||
###
|
|
||||||
sonarr_available_externally: "false"
|
|
||||||
sonarr_data_directory: "{{ docker_home }}/sonarr/config"
|
|
||||||
sonarr_tv_directory: "{{ tv_root }}"
|
|
||||||
sonarr_download_directory: "{{ downloads_root }}"
|
|
||||||
sonarr_user_id: "0"
|
|
||||||
sonarr_group_id: "0"
|
|
||||||
sonarr_port: "8989"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### YouTubeDL-Material
|
### YouTubeDL-Material
|
||||||
|
|
9
nas.yml
9
nas.yml
|
@ -143,6 +143,11 @@
|
||||||
- sickchill
|
- sickchill
|
||||||
when: (sickchill_enabled | default(False))
|
when: (sickchill_enabled | default(False))
|
||||||
|
|
||||||
|
- role: sonarr
|
||||||
|
tags:
|
||||||
|
- sonarr
|
||||||
|
when: (sonarr_enabled | default(False))
|
||||||
|
|
||||||
- role: transmission
|
- role: transmission
|
||||||
tags:
|
tags:
|
||||||
- transmission
|
- transmission
|
||||||
|
@ -189,10 +194,6 @@
|
||||||
when: (mylar_enabled | default(False))
|
when: (mylar_enabled | default(False))
|
||||||
tags: mylar
|
tags: mylar
|
||||||
|
|
||||||
- import_tasks: tasks/sonarr.yml
|
|
||||||
when: (sonarr_enabled | default(False))
|
|
||||||
tags: sonarr
|
|
||||||
|
|
||||||
- import_tasks: tasks/glances.yml
|
- import_tasks: tasks/glances.yml
|
||||||
when: (glances_enabled | default(False))
|
when: (glances_enabled | default(False))
|
||||||
tags: glances
|
tags: glances
|
||||||
|
|
16
roles/sonarr/defaults/main.yml
Normal file
16
roles/sonarr/defaults/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
sonarr_enabled: false
|
||||||
|
sonarr_available_externally: "false"
|
||||||
|
|
||||||
|
# directories
|
||||||
|
sonarr_data_directory: "{{ docker_home }}/sonarr/config"
|
||||||
|
sonarr_tv_directory: "{{ tv_root }}"
|
||||||
|
sonarr_download_directory: "{{ downloads_root }}"
|
||||||
|
|
||||||
|
# uid / gid
|
||||||
|
sonarr_user_id: "0"
|
||||||
|
sonarr_group_id: "0"
|
||||||
|
|
||||||
|
# network
|
||||||
|
sonarr_port: "8989"
|
||||||
|
sonarr_hostname: "sonarr"
|
|
@ -25,7 +25,7 @@
|
||||||
memory: 1g
|
memory: 1g
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "{{ sonarr_available_externally }}"
|
traefik.enable: "{{ sonarr_available_externally }}"
|
||||||
traefik.http.routers.sonarr.rule: "Host(`sonarr.{{ ansible_nas_domain }}`)"
|
traefik.http.routers.sonarr.rule: "Host(`{{ sonarr_hostname }}.{{ ansible_nas_domain }}`)"
|
||||||
traefik.http.routers.sonarr.tls.certresolver: "letsencrypt"
|
traefik.http.routers.sonarr.tls.certresolver: "letsencrypt"
|
||||||
traefik.http.routers.sonarr.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
traefik.http.routers.sonarr.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||||
traefik.http.routers.sonarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
traefik.http.routers.sonarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
Loading…
Reference in a new issue