Skip to content

Commit e7e63ac

Browse files
committed
qbittorrent: set legacy port field
1 parent 75a6b1b commit e7e63ac

File tree

2 files changed

+24
-0
lines changed
  • roles/qbittorrent/tasks/subtasks

2 files changed

+24
-0
lines changed

roles/qbittorrent/tasks/subtasks/post-install/settings/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@
1919
group: "{{ user.name }}"
2020
mode: "0775"
2121

22+
- name: Post-Install | Settings | Update Connection\PortRangeMin in 'qBittorrent.conf' config settings (legacy)
23+
community.general.ini_file:
24+
path: "{{ qbittorrent_paths_conf }}"
25+
section: Preferences
26+
option: Connection\PortRangeMin
27+
value: "{{ lookup('vars', qbittorrent_name + '_docker_ports_56881', default=qbittorrent_docker_ports_56881) }}"
28+
no_extra_spaces: true
29+
state: present
30+
owner: "{{ user.name }}"
31+
group: "{{ user.name }}"
32+
mode: "0775"
33+
2234
- name: Post-Install | Settings | Update WebUI\HostHeaderValidation 'qBittorrent.conf' config settings
2335
community.general.ini_file:
2436
path: "{{ qbittorrent_paths_conf }}"

roles/qbittorrent/tasks/subtasks/pre-install/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@
4343
group: "{{ user.name }}"
4444
mode: "0775"
4545

46+
- name: Pre-Install | Settings | Update Connection\PortRangeMin in 'qBittorrent.conf' config settings (legacy)
47+
community.general.ini_file:
48+
path: "{{ qbittorrent_paths_conf }}"
49+
section: Preferences
50+
option: Connection\PortRangeMin
51+
value: "{{ lookup('vars', qbittorrent_name + '_docker_ports_56881', default=qbittorrent_docker_ports_56881) }}"
52+
no_extra_spaces: true
53+
state: present
54+
owner: "{{ user.name }}"
55+
group: "{{ user.name }}"
56+
mode: "0775"
57+
4658
- name: Pre-Install | Settings | Update WebUI\HostHeaderValidation 'qBittorrent.conf' config settings
4759
community.general.ini_file:
4860
path: "{{ qbittorrent_paths_conf }}"

0 commit comments

Comments
 (0)