ansible-nas/tasks/sickchill.yml

38 lines
1,000 B
YAML
Raw Normal View History

2017-11-21 22:18:35 +00:00
---
- name: Remove Old Sickrage Docker Container
docker_container:
name: sickrage
state: absent
keep_volumes: true
- name: Create Sickchill Directories
2017-11-21 22:18:35 +00:00
file:
path: "{{ item }}"
state: directory
# mode: 0755
with_items:
- "{{ sickchill_config_directory }}"
2017-11-21 22:18:35 +00:00
- name: Sickchill Docker Container
2017-11-21 22:18:35 +00:00
docker_container:
name: sickchill
image: linuxserver/sickchill
2017-11-21 22:18:35 +00:00
pull: true
volumes:
- "{{ sickchill_config_directory }}:/config:rw"
- "{{ sickchill_downloads_directory }}:/downloads:rw"
- "{{ sickchill_tv_directory }}:/tv:rw"
2017-11-21 22:18:35 +00:00
ports:
- "8081:8081"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ sickchill_user_id }}"
PGID: "{{ sickchill_group_id }}"
2017-11-21 22:18:35 +00:00
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "sickchill"
traefik.frontend.rule: "Host:sickchill.{{ ansible_nas_domain }}"
traefik.enable: "{{ sickchill_available_externally }}"
traefik.port: "8081"