mv jackett to role

This commit is contained in:
PurpleNinja225 2021-01-29 00:47:56 -09:00
parent 3657c4feda
commit dda1f432ef
4 changed files with 21 additions and 14 deletions

View file

@ -16,7 +16,6 @@
###
# Media Sourcing
jackett_enabled: false
minidlna_enabled: false
jellyfin_enabled: false
@ -421,14 +420,6 @@ minidlna_port: "8201"
mymediaforalexa_media_directory: "{{ music_root }}"
mymediaforalexa_data_directory: "{{ docker_home }}/mymediaforalexa"
###
### Jackett
###
jackett_available_externally: "false"
jackett_data_directory: "{{ docker_home }}/jackett"
jackett_torrents_root: "{{ torrents_root }}"
jackett_port: "9117"
###
### The Lounge
###

View file

@ -98,6 +98,11 @@
- homeassistant
when: (homeassistant_enabled | default(False))
- role: jackett
tags:
- jackett
when: (jackett_enabled | default(False))
- role: lidarr
tags:
- lidarr
@ -252,10 +257,6 @@
when: (mymediaforalexa_enabled | default(False))
tags: mymediaforalexa
- import_tasks: tasks/jackett.yml
when: (jackett_enabled | default(False))
tags: jackett
- import_tasks: tasks/joomla.yml
when: (joomla_enabled | default(False))
tags: joomla

View file

@ -0,0 +1,15 @@
---
# enable or disable the application
jackett_enabled: false
jackett_available_externally: "false"
# directories
jackett_data_directory: "{{ docker_home }}/jackett"
jackett_torrents_root: "{{ torrents_root }}"
# network
jackett_hostname: "jackett"
jackett_port: "9117"
# specs
jackett_memory: "1g"

View file

@ -21,7 +21,7 @@
restart_policy: unless-stopped
labels:
traefik.enable: "{{ jackett_available_externally }}"
traefik.http.routers.jackett.rule: "Host(`jackett.{{ ansible_nas_domain }}`)"
traefik.http.routers.jackett.rule: "Host(`{{ jackett_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.jackett.tls.certresolver: "letsencrypt"
traefik.http.routers.jackett.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.jackett.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"