mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 19:13:08 +00:00
29 lines
1,020 B
YAML
29 lines
1,020 B
YAML
---
|
|
- 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"
|
|
- "{{ jackett_torrents_root }}:/downloads"
|
|
ports:
|
|
- "{{ jackett_port }}:9117"
|
|
env:
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
restart_policy: unless-stopped
|
|
memory: "{{ jackett_memory }}"
|
|
labels:
|
|
traefik.enable: "{{ jackett_available_externally }}"
|
|
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 }}"
|
|
traefik.http.services.jackett.loadbalancer.server.port: "9117"
|