Additional WebUI, blocklist config

This commit is contained in:
ChaosZero112
2019-06-15 14:40:32 -04:00
parent 1b0cc0aa17
commit e871e79fcd

View File

@@ -87,6 +87,8 @@
pull: yes
published_ports:
- '{{ports.stdout}}{{extport}}:{{intport}}'
- '{{ports.stdout}}{{extport1}}:{{intport1}}'
- '{{ports.stdout}}{{extport2}}:{{intport2}}'
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
@@ -136,6 +138,10 @@
value: True
state: present
- name: Get latest blocklist
shell: /usr/bin/curl -L http://john.bitsurge.net/public/biglist.p2p.gz | /usr/bin/gzip -cdf > /config/qBittorrent/config/biglist.p2p
# FIRST TIME CONFIGURATION ####################################################
- name: 'Configuring {{pgrole}} for first time use'
block:
@@ -284,6 +290,51 @@
value: '*'
force: yes
state: present
- name: Set Port
ini_file:
path: '/opt/appdata/{{pgrole}}/qBittorrent/config/qBittorrent.conf'
section: Preferences
option: Connection\PortRangeMin
value: '{{intport2}}'
force: yes
state: present
- name: Set torrent Watch folder
ini_file:
path: '/opt/appdata/{{pgrole}}/qBittorrent/config/qBittorrent.conf'
section: Preferences
option: Downloads\ScanDirsV2
value: '@Variant(\0\0\0\x1c\0\0\0\x1\0\0\0$\0/\0m\0n\0t\0/\0t\0o\0r\0r\0\x65\0n\0t\0/\0w\0\x61\0t\0\x63\0h\0\0\0\x2\0\0\0\0)'
force: yes
state: present
- name: Set Blocklist enabled
ini_file:
path: '/opt/appdata/{{pgrole}}/qBittorrent/config/qBittorrent.conf'
section: Preferences
option: IPFilter\Enabled
value: 'true'
force: yes
state: present
- name: Set Blocklist location
ini_file:
path: '/opt/appdata/{{pgrole}}/qBittorrent/config/qBittorrent.conf'
section: Preferences
option: IPFilter\File
value: '/config/qBittorrent/config/biglist.p2p'
force: yes
state: present
- name: Set default login
ini_file:
path: '/opt/appdata/{{pgrole}}/qBittorrent/config/qBittorrent.conf'
section: Preferences
option: WebUI\Password_ha1
value: '@ByteArray(22f616dbc8cdb4aa96105b1c8f36ea63)'
force: yes
state: present
when: not confcheck.stat.exists
- name: Restart {{pgrole}}