ansible-nas/tasks/jackett.yml

26 lines
710 B
YAML
Raw Normal View History

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:
- "{{ jackett_port }}:9117"
2019-03-22 18:46:38 +00:00
env:
TZ: "{{ ansible_nas_timezone }}"
restart_policy: unless-stopped
labels:
traefik.backend: "jackett"
traefik.frontend.rule: "Host:jackett.{{ ansible_nas_domain }}"
traefik.enable: "{{ jackett_available_externally }}"
traefik.port: "9117"