ansible-nas/roles/sabnzbd/tasks/main.yml

30 lines
832 B
YAML
Raw Normal View History

2020-01-30 14:47:37 +00:00
---
- name: Create Sabnzbd Data Directory
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ sabnzbd_data_directory }}"
- name: Sabnzbd
docker_container:
name: sabnzbd
image: linuxserver/sabnzbd
pull: true
volumes:
- "{{ sabnzbd_data_directory }}:/config:rw"
2022-05-27 23:44:23 +00:00
- "{{ sabnzbd_downloads_directory }}:/downloads"
- "{{ sabnzbd_incomplete_directory }}:/incomplete-downloads"
2020-01-30 14:47:37 +00:00
ports:
2022-05-27 23:44:23 +00:00
- "{{ sabnzbd_port }}:8080"
2020-01-30 14:47:37 +00:00
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ sabnzbd_user_id }}"
PGID: "{{ sabnzbd_group_id }}"
restart_policy: unless-stopped
labels:
traefik.backend: "sabnzbd"
traefik.frontend.rule: "Host:sabnzbd.{{ ansible_nas_domain }}"
traefik.enable: "{{ sabnzbd_available_externally }}"
traefik.port: "8080"