Initial commit

This commit is contained in:
Alex 2020-05-18 19:18:05 +02:00
commit a03598399e
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 82 additions and 0 deletions

12
tasks/main.yml Normal file
View File

@ -0,0 +1,12 @@
- name: Copy configuration files for Transmission
loop:
- { src: 'transmission.json.j2', dest: '{{ transmission.root_dir }}/.config/settings.json', mode: '0600' }
template:
follow: yes
src: '{{ item.src }}'
dest: '{{ item.dest }}'
mode: '{{ item.mode }}'
notify: Run service actions
tags:
- transmission
- vault

View File

@ -0,0 +1,70 @@
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": true,
"blocklist-url": "https://github.com/sahsu/transmission-blocklist/releases/download/1.0.3/blocklist.gz",
"cache-size-mb": 50,
"dht-enabled": true,
"download-dir": "{{ transmission.root_dir }}/downloads",
"download-queue-enabled": true,
"download-queue-size": 50,
"encryption": 2,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "{{ transmission.root_dir }}/incomplete",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 2,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 1,
"peer-limit-global": 2000,
"peer-limit-per-torrent": 30,
"peer-port": {{ transmission.port.peer }},
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": false,
"preallocation": 0,
"prefetch-enabled": true,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 20,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "{{ ansible_ens10.ipv4.address }}",
"rpc-enabled": true,
"rpc-host-whitelist": "127.0.0.1",
"rpc-host-whitelist-enabled": false,
"rpc-password": "{{ creds.password }}",
"rpc-port": {{ transmission.port.rpc }},
"rpc-url": "/",
"rpc-username": "{{ creds.username }}",
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": false,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 100,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 18,
"upload-slots-per-torrent": 1000,
"utp-enabled": true,
"watch-dir": "/watch",
"watch-dir-enabled": false
}