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:
|
|
|
|
- "9092:9091"
|
|
|
|
- "51414:51413"
|
|
|
|
env:
|
2018-11-12 22:30:13 +00:00
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
2017-08-28 15:31:54 +00:00
|
|
|
PUID: "{{ transmission_user_id }}"
|
|
|
|
PGID: "{{ transmission_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
|
|
|
|