Move deluge onto walker
Stop torrent traffic being limitted by home broadband
This commit is contained in:
parent
6cfaa3a03a
commit
191374b812
6 changed files with 24 additions and 28 deletions
|
@ -52,3 +52,4 @@
|
||||||
- website
|
- website
|
||||||
- duplicati
|
- duplicati
|
||||||
- gitlab_pages
|
- gitlab_pages
|
||||||
|
- deluge
|
||||||
|
|
|
@ -8,9 +8,9 @@ services:
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ app_data_dir }}/deluge:/config"
|
- "{{ app_data_dir }}/deluge:/config"
|
||||||
- /mnt/scratch/deluge:/downloads
|
- /mnt/tank/downloads:/downloads
|
||||||
ports:
|
ports:
|
||||||
- 8112:8112
|
- "{{ wireguard.clients[ansible_fqdn].ip }}:8112:8112"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- tor-socks-proxy
|
- tor-socks-proxy
|
4
ansible/roles/deluge/handlers/main.yml
Normal file
4
ansible/roles/deluge/handlers/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- name: restart deluge
|
||||||
|
shell:
|
||||||
|
chdir: /opt/deluge
|
||||||
|
cmd: "{{ docker_update_command }}"
|
17
ansible/roles/deluge/tasks/main.yml
Normal file
17
ansible/roles/deluge/tasks/main.yml
Normal 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
|
|
@ -19,9 +19,6 @@
|
||||||
- name: Install synapse
|
- name: Install synapse
|
||||||
include: synapse.yml
|
include: synapse.yml
|
||||||
|
|
||||||
- name: Install torrent
|
|
||||||
include: torrent.yml
|
|
||||||
|
|
||||||
- name: Install tt-rss
|
- name: Install tt-rss
|
||||||
include: tt-rss.yml
|
include: tt-rss.yml
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue