2017-11-21 22:18:35 +00:00
|
|
|
---
|
2019-04-15 15:38:08 +00:00
|
|
|
- name: Create Sickchill Directories
|
2017-11-21 22:18:35 +00:00
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
# mode: 0755
|
|
|
|
with_items:
|
2019-04-15 15:38:08 +00:00
|
|
|
- "{{ sickchill_config_directory }}"
|
2017-11-21 22:18:35 +00:00
|
|
|
|
2019-04-15 15:38:08 +00:00
|
|
|
- name: Sickchill Docker Container
|
2017-11-21 22:18:35 +00:00
|
|
|
docker_container:
|
2019-04-15 15:38:08 +00:00
|
|
|
name: sickchill
|
|
|
|
image: linuxserver/sickchill
|
2017-11-21 22:18:35 +00:00
|
|
|
pull: true
|
|
|
|
volumes:
|
2019-04-15 15:38:08 +00:00
|
|
|
- "{{ sickchill_config_directory }}:/config:rw"
|
2019-04-16 09:10:19 +00:00
|
|
|
- "{{ sickchill_downloads_directory }}:/downloads:rw"
|
2019-04-15 15:38:08 +00:00
|
|
|
- "{{ sickchill_tv_directory }}:/tv:rw"
|
2017-11-21 22:18:35 +00:00
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ sickchill_port }}:8081"
|
2017-11-21 22:18:35 +00:00
|
|
|
env:
|
2018-11-12 22:30:13 +00:00
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
2019-04-15 15:38:08 +00:00
|
|
|
PUID: "{{ sickchill_user_id }}"
|
|
|
|
PGID: "{{ sickchill_group_id }}"
|
2017-11-21 22:18:35 +00:00
|
|
|
restart_policy: unless-stopped
|
2021-02-23 15:16:29 +00:00
|
|
|
memory: "{{ sickchill_memory }}"
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
2019-04-15 15:38:08 +00:00
|
|
|
traefik.enable: "{{ sickchill_available_externally }}"
|
2021-01-19 17:18:12 +00:00
|
|
|
traefik.http.routers.sickchill.rule: "Host(`{{ sickchill_hostname }}.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.sickchill.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.sickchill.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.sickchill.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.services.sickchill.loadbalancer.server.port: "8081"
|