Move deluge onto walker

Stop torrent traffic being limitted by home broadband
This commit is contained in:
Jake Howard 2020-10-02 18:11:27 +01:00
parent 6cfaa3a03a
commit 191374b812
Signed by: jake
GPG key ID: 57AFB45680EDD477
6 changed files with 24 additions and 28 deletions

View file

@ -52,3 +52,4 @@
- website
- duplicati
- gitlab_pages
- deluge

View file

@ -8,9 +8,9 @@ services:
- TZ=Europe/London
volumes:
- "{{ app_data_dir }}/deluge:/config"
- /mnt/scratch/deluge:/downloads
- /mnt/tank/downloads:/downloads
ports:
- 8112:8112
- "{{ wireguard.clients[ansible_fqdn].ip }}:8112:8112"
restart: unless-stopped
depends_on:
- tor-socks-proxy

View file

@ -0,0 +1,4 @@
- name: restart deluge
shell:
chdir: /opt/deluge
cmd: "{{ docker_update_command }}"

View file

@ -0,0 +1,17 @@
- name: Create deluge directory
file:
path: /opt/deluge
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install deluge compose file
template:
src: files/docker-compose.yml
dest: /opt/deluge/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
notify: restart deluge
become: true

View file

@ -19,9 +19,6 @@
- name: Install synapse
include: synapse.yml
- name: Install torrent
include: torrent.yml
- name: Install tt-rss
include: tt-rss.yml

View file

@ -1,23 +0,0 @@
- name: Create torrent directory
file:
path: /opt/torrent
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install torrent compose file
template:
src: files/torrent/docker-compose.yml
dest: /opt/torrent/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
register: compose_file
become: true
- name: restart torrent
shell:
chdir: /opt/torrent
cmd: "{{ docker_update_command }}"
when: compose_file.changed