GR360RY.deluge
Deluge
This is an Ansible role to set up and configure Deluge Daemon and Deluge-Web on Ubuntu.
Requirements
You need Ansible version 2.0 or higher for this role. Check the metadata file for platform requirements. If you are not using Ansible Galaxy to install, download the required roles listed in the Dependencies section.
Overview
The following tasks will be done with the deluge
role:
- Install and configure Deluge Daemon
- Install and configure Deluge Web Daemon
- Create folders for complete and incomplete downloads
- Configure label and execute plugins if installed with
nzbtomedia
roles
Downloads and Media Folder Structure
Here's the default layout for Downloads and Media folders:
/mnt/media/
├── downloads
│ ├── complete # Complete Downloads
│ └── incomplete
│ ├── deluged # Deluge Incomplete Downloads
│ └── process # nzbtomedia processing folders
│ ├── movie
│ └── tv
├── movies
├── music
├── pictures
└── tv
- The default password for the Deluge Web Interface is
deluge
. - Access the web interface at http://localhost:8112/ if using the default port.
Role Variables
Here are some default variables you can configure:
# defaults file for deluge
# Enable or disable Deluge
deluge_enabled: yes
# Path for Deluge Daemon
deluged_path: /opt/deluged
# Location for incomplete downloads
deluged_incomplete: "{{ htpc_downloads_incomplete }}/deluged"
# Password for local client user
deluged_localclient_password: 2b9cf85259f2149da47458eda73ba23ac06faa21
# Host for Deluge Daemon
deluged_host: "{{ ansible_default_ipv4.address }}"
deluged_port: 58846
deluge_web_port: 8112
Dependencies
This role depends on other roles:
GR360RY.htpc-common
: Creates a user and media foldersGR360RY.nzbtomedia
: Installs NZBtoMedia Postprocessing
Defaults for htpc-common
htpc_user_username: htpc
htpc_user_password: htpc
htpc_user_group: htpc
htpc_user_shell: /bin/bash
htpc_user_sudo_access: yes
htpc_ssh_service: yes
htpc_create_media_folders: yes
htpc_zeroconf: yes
htpc_media_path: /mnt/media
htpc_media_movies: movies
htpc_media_tv: tv
htpc_media_music: music
htpc_media_pictures: pictures
htpc_downloads_complete: "{{ htpc_media_path }}/downloads/complete"
htpc_downloads_incomplete: "{{ htpc_media_path }}/downloads/incomplete"
Defaults for nzbtomedia
nzbtomedia_enabled: yes
nzbtomedia_path: /opt/nzbtomedia
Example Playbook
To install Deluge for the user foo
, without configuring SSH, sudo access, or creating media folders:
---
- hosts: htpc-server
become: yes
vars:
htpc_user_username: foo
htpc_user_group: foo
htpc_user_sudo_access: no
htpc_user_ssh_service: no
htpc_create_media_folders: no
htpc_zeroconf: no
htpc_downloads_complete: /home/foo/Downloads
deluged_incomplete: /home/foo/.deluged_incomplete
roles:
- role: GR360RY.deluge
To install Couchpotato and Sickrage using Deluge as the downloader, creating the user htpc
with password htpc
and using default folder layouts:
- hosts: htpc-server
become: yes
roles:
- role: GR360RY.deluge
- role: GR360RY.sickrage
- role: GR360RY.couchpotato
HTPC-Ansible Project
This role is part of the HTPC-Ansible project, which includes more roles for building an Ubuntu-based HTPC server.
Full List of Ansible Galaxy Roles
GR360RY.htpc-common
: Create user and media foldersGR360RY.htpc-nas
: Configure NAS (NFS, CIFS, AFP)GR360RY.kodi-client
: Install Kodi Media PlayerGR360RY.kodi-mysql
: Install MySQL Backend for KodiGR360RY.deluge
: Install Deluge BitTorrent ClientGR360RY.sabnzbd
: Install Sabnzbd Usenet ClientGR360RY.nzbtomedia
: Install NZBtoMedia PostprocessingGR360RY.sickrage
: Install SickRageGR360RY.couchpotato
: Install CouchPotatoGR360RY.htpc-manager
: Install HTPCManager
For more information, visit www.htpc-ansible.org.
License
BSD
Author Information
Gregory Shulov
An ansible role to setup and configure Deluge and Deluge-Web Daemons under Ubuntu distro's.
ansible-galaxy install GR360RY.deluge