fixes ports

This commit is contained in:
LooseSeal2
2019-07-29 16:58:17 -07:00
parent 83ebf86515
commit 9c23a08a61
4 changed files with 15 additions and 4 deletions

View File

@@ -15,7 +15,9 @@
set_fact:
pgrole: 'qbittorrent'
intport: '8080'
extport: '8080'
extport: '8098'
intport2: '8118'
extport2: '8118'
dnsserver1: '1.1.1.1'
dnsserver2: '84.200.69.80'
dnsserver3: '37.235.1.174'
@@ -91,6 +93,7 @@
pull: yes
published_ports:
- '{{ports.stdout}}{{extport}}:{{intport}}'
- '{{ports.stdout}}{{extport2}}:{{intport2}}'
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
@@ -123,6 +126,14 @@
name: '{{pgrole}}'
state: stopped
- name: Set torrent port
ini_file:
path: '/opt/appdata/{{pgrole}}/qBittorrent/config/qBittorrent.conf'
section: Preferences
option: Connection\PortRangeMin
value: '7889'
state: present
- name: Set SavePath
ini_file:
path: '/opt/appdata/{{pgrole}}/qBittorrent/config/qBittorrent.conf'