mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 02:53:11 +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
|
||||
|
||||
# Media Sourcing
|
||||
sonarr_enabled: false # tv
|
||||
|
||||
get_iplayer_enabled: false
|
||||
jackett_enabled: false
|
||||
minidlna_enabled: false
|
||||
|
@ -315,16 +313,6 @@ mylar_port_http: "8585"
|
|||
mylar_user_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
|
||||
|
|
9
nas.yml
9
nas.yml
|
@ -143,6 +143,11 @@
|
|||
- sickchill
|
||||
when: (sickchill_enabled | default(False))
|
||||
|
||||
- role: sonarr
|
||||
tags:
|
||||
- sonarr
|
||||
when: (sonarr_enabled | default(False))
|
||||
|
||||
- role: transmission
|
||||
tags:
|
||||
- transmission
|
||||
|
@ -189,10 +194,6 @@
|
|||
when: (mylar_enabled | default(False))
|
||||
tags: mylar
|
||||
|
||||
- import_tasks: tasks/sonarr.yml
|
||||
when: (sonarr_enabled | default(False))
|
||||
tags: sonarr
|
||||
|
||||
- import_tasks: tasks/glances.yml
|
||||
when: (glances_enabled | default(False))
|
||||
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
|
||||
labels:
|
||||
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.domains[0].main: "{{ ansible_nas_domain }}"
|
||||
traefik.http.routers.sonarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
Loading…
Reference in a new issue