deluge_docker

Deluge-docker

Role to create deluge user/group and directory to use in the cluster. Need to use the same UID and GID on all the system's user. Based on the image linuxserver/deluge.

Requirements

  • Docker and docker-compose installed (with my role if needed github)
  • Ansible collection community.docker (documentation) : ansible-galaxy collection install community.docker

Role Variables

The role can work as it with the default configuration.

Docker/traefik (can be inherit for other docker roles)

  • traefik_network_name your traefik network (default proxy-net)
  • traefik_domain Main domaine of Traefik, to create a subdomain deluge.yourdomain.tld
  • docker_user your usual user to run a docker container (by default the first user with uid 1000)
  • docker_group your usual group to run a docker container (by default the first user's group with gid 1000)
  • docker_conf the docker configurations's repository (default /etc/docker)

Main

  • deluge_uid define a system uid (default 202)
  • deluge_gid define a system group gid (default 202)
  • deluge_user user in the host for files's ownership (default dl)
  • deluge_group group (default dl)
  • deluge_path deluge data root path on the host (default /torrent) that is bind to /torrent inside the docker
  • deluge_config deluge config path on the host (default /etc/docker/deluge/config) that is bind to /config inside the docker
  • deluge_sub_paths list of paths used by deluge
    • tmp for current downloads
    • complets for finished downloads
    • archives to archive the .torrent files
  • deluge_docker_torrent_port port to expose for torrent P2P (default 58946) that is bind to 58946 inside the docker

Second

  • deluge_docker_portmaping use portmapping (default yes)
  • deluge_docker_port port to use in portmaping mode (default 8112)
  • deluge_docker_api_portmaping allow API portmapping, no needed if you using only webinterface (default no)
  • deluge_docker_api_port port to use for API portmapping (default 58846)
  • deluge_docker_traefik use Traefik labels as reverse proxy for https (default no)
  • deluge_traefik_subdomain the subdomaine to create with Traefik for deluge (default deluge)
  • deluge_docker_start start the docker-compose directly at the end of configuration (default no).

Dependencies

Installed by the role :

  • pip3
  • pip lib for docker
    • docker
    • docker-compose

Example Playbook

- hosts: "{{myhost | default('vpsnl')}}"
  remote_user: root

  roles:
    - name: deluge-docker

License

GPL v3

Author Information

Belgotux MonLinux

About

Role to create deluge user/group and directory to use in the cluster. Based on the image `linuxserver/deluge`.

Install
ansible-galaxy install belgotux/ansible-role-deluge-docker
GitHub repository
License
Unknown
Downloads
19
Owner