Home

Awesome

Transmission BT Ansible Role

Build status Ansible galaxy

Ansible role for installing and configuring Transmission.

Requirements

Debian based system.

Installing

You can easily install this role using ansible-galaxy:

ansible-galaxy install elboletaire.transmission -p roles

Variables

There are no mandatory variables.

Web interface & RPC

VariableDefault
transmission_password
transmission_rpc_auth_requiredfalse
transmission_user{{ ansible_user_id }}
transmission_rpc_whitelist_enabledfalse
transmission_rpc_whitelist127.0.0.1
transmission_url/transmission/

Folders

VariableDefault
transmission_download_dir{{ ansible_env.HOME }}/downloads
transmission_umask2
transmission_watch_dir_enabledtrue
transmission_watch_dir{{ ansible_env.HOME }}/torrents
transmission_incomplete_dir_enabledfalse
transmission_incomplete_dir{{ ansible_env.HOME }}/.incomplete

Speed limits & ratio

VariableDefault
transmission_speed_limit_up_enabledfalse
transmission_speed_limit_up100
transmission_speed_limit_down_enabledfalse
transmission_speed_limit_down100
transmission_ratio_limit_enabledfalse
transmission_ratio_limit2

Blocklist

VariableDefault
transmission_blocklist_enabledfalse
transmission_blocklist_urlhttp://www.example.com/blocklist

Please, refer to the transmission documentation to better understand this variables.

Example Playbook

A very simple example:

- hosts: all
  roles:
    - role: transmission
      sudo: yes

A bit more complex example:

- hosts: all
  roles:
    - role: transmission
      sudo: yes
      transmission_user: Krilin
      transmission_password: Bu1m4
      transmission_rpc_auth_required: true
      transmission_rpc_whitelist_enabled: true
      transmission_rpc_whitelist: "127.0.0.1,192.168.1.*"

License

The MIT License (MIT)

Copyright (c) 2015 Oscar Casajuana <elboletaire at underave dot net>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.