2017-08-28 15:31:54 +00:00
|
|
|
---
|
|
|
|
- name: Create Transmission Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
# mode: 0755
|
|
|
|
with_items:
|
|
|
|
- "{{ transmission_config_directory }}"
|
|
|
|
- "{{ transmission_download_directory }}"
|
|
|
|
- "{{ transmission_watch_directory }}"
|
|
|
|
|
|
|
|
- name: Transmission Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: transmission
|
|
|
|
image: linuxserver/transmission
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ transmission_config_directory }}:/config:rw"
|
|
|
|
- "{{ transmission_download_directory }}:/downloads:rw"
|
|
|
|
- "{{ transmission_watch_directory }}:/watch:rw"
|
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ transmission_webui_port }}:9091"
|
|
|
|
- "{{ transmission_external_port }}:51413"
|
2020-05-05 21:46:03 +00:00
|
|
|
- "{{ transmission_external_port }}:51413/udp"
|
2017-08-28 15:31:54 +00:00
|
|
|
env:
|
2021-01-13 15:19:47 +00:00
|
|
|
TZ: "{{ transmission_timezone }}"
|
2017-08-28 15:31:54 +00:00
|
|
|
PUID: "{{ transmission_user_id }}"
|
|
|
|
PGID: "{{ transmission_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
2021-02-23 15:16:29 +00:00
|
|
|
memory: "{{ transmission_memory }}"
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ transmission_available_externally }}"
|
2021-01-19 17:18:12 +00:00
|
|
|
traefik.http.routers.transmission.rule: "Host(`{{ transmission_hostname }}.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.transmission.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.transmission.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.transmission.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
2021-02-21 19:50:07 +00:00
|
|
|
traefik.http.services.transmission.loadbalancer.server.port: "9091"
|