ansible-nas/tasks/transmission.yml
David Stephens 3da19e5708 Major updates:
* Rejig of playbook to load roles from ansible-galaxy
* Remove ansible-nas role and move tasks to tasks directory
* Add InfluxDB/Telegraf/Grafana for monitoring & dashboards
* Automatically configure InfluxDB as a datasource in Grafana
* Switch to ZFS Docker driver
* Add note about switching to overlay2 Docker driver if required
2018-04-08 23:29:25 +01:00

30 lines
817 B
YAML

---
- 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"
- "/etc/timezone:/etc/timezone:ro"
ports:
- "9092:9091"
- "51414:51413"
env:
PUID: "{{ transmission_user_id }}"
PGID: "{{ transmission_group_id }}"
restart_policy: unless-stopped
memory: 1g