2021-01-28 08:16:54 +00:00
|
|
|
---
|
|
|
|
- name: Create Deluge Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
# mode: 0755
|
|
|
|
with_items:
|
|
|
|
- "{{ deluge_config_directory }}"
|
|
|
|
- "{{ deluge_download_directory }}"
|
|
|
|
|
|
|
|
- name: Deluge Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: deluge
|
|
|
|
image: linuxserver/deluge
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ deluge_config_directory }}:/config:rw"
|
|
|
|
- "{{ deluge_download_directory }}:/root/Downloads:rw"
|
|
|
|
ports:
|
|
|
|
- "{{ deluge_port }}:8112"
|
|
|
|
env:
|
|
|
|
TZ: "{{ deluge_timezone }}"
|
|
|
|
PUID: "{{ deluge_user_id }}"
|
|
|
|
PGID: "{{ deluge_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
2021-02-23 15:16:29 +00:00
|
|
|
memory: "{{ deluge_memory }}"
|
2021-01-28 08:16:54 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ deluge_available_externally }}"
|
|
|
|
traefik.http.routers.deluge.rule: "Host(`{{ deluge_hostname }}.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.deluge.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.deluge.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.deluge.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
2021-02-21 19:50:07 +00:00
|
|
|
traefik.http.services.deluge.loadbalancer.server.port: "8112"
|