2019-03-22 18:46:38 +00:00
|
|
|
---
|
|
|
|
- name: Create jackett Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ jackett_data_directory }}"
|
|
|
|
|
|
|
|
- name: jackett
|
|
|
|
docker_container:
|
|
|
|
name: jackett
|
|
|
|
image: linuxserver/jackett
|
|
|
|
volumes:
|
|
|
|
- "{{ jackett_data_directory }}:/config:rw"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2020-01-18 16:40:23 +00:00
|
|
|
- "{{ jackett_torrents_root }}:/downloads"
|
2019-03-22 18:46:38 +00:00
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ jackett_port }}:9117"
|
2019-03-22 18:46:38 +00:00
|
|
|
env:
|
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
2019-04-11 22:03:11 +00:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ jackett_available_externally }}"
|
2021-01-29 09:47:56 +00:00
|
|
|
traefik.http.routers.jackett.rule: "Host(`{{ jackett_hostname }}.{{ ansible_nas_domain }}`)"
|
2021-01-19 23:51:59 +00:00
|
|
|
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 }}"
|
2021-02-21 19:50:07 +00:00
|
|
|
traefik.http.services.jackett.loadbalancer.server.port: "9117"
|