belgotux.docker_deluge
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_nameyour traefik network (default proxy-net)traefik_domainMain domaine of Traefik, to create a subdomain deluge.yourdomain.tlddocker_useryour usual user to run a docker container (by default the first user with uid 1000)docker_groupyour usual group to run a docker container (by default the first user's group with gid 1000)docker_confthe docker configurations's repository (default /etc/docker)
Main
deluge_uiddefine a system uid (default 202)deluge_giddefine a system group gid (default 202)deluge_useruser in the host for files's ownership (default dl)deluge_groupgroup (default dl)deluge_pathdeluge data root path on the host (default /torrent) that is bind to /torrent inside the dockerdeluge_configdeluge config path on the host (default /etc/docker/deluge/config) that is bind to /config inside the dockerdeluge_sub_pathslist of paths used by delugetmpfor current downloadscompletsfor finished downloadsarchivesto archive the .torrent files
deluge_docker_torrent_portport to expose for torrent P2P (default 58946) that is bind to 58946 inside the docker
Second
deluge_docker_portmapinguse portmapping (default yes)deluge_docker_portport to use in portmaping mode (default 8112)deluge_docker_api_portmapingallow API portmapping, no needed if you using only webinterface (default no)deluge_docker_api_portport to use for API portmapping (default 58846)deluge_docker_traefikuse Traefik labels as reverse proxy for https (default no)deluge_traefik_subdomainthe subdomaine to create with Traefik for deluge (default deluge)deluge_docker_startstart the docker-compose directly at the end of configuration (default no).
Dependencies
Installed by the role :
- pip3
- pip lib for docker
dockerdocker-compose
Example Playbook
- hosts: "{{myhost | default('vpsnl')}}"
remote_user: root
roles:
- name: deluge-docker
License
Author Information
Belgotux MonLinux
