Skip to content

Commit

Permalink
qbittorrent: set legacy port field
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jan 17, 2024
1 parent 75a6b1b commit e7e63ac
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions roles/qbittorrent/tasks/subtasks/post-install/settings/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
group: "{{ user.name }}"
mode: "0775"

- name: Post-Install | Settings | Update Connection\PortRangeMin in 'qBittorrent.conf' config settings (legacy)
community.general.ini_file:
path: "{{ qbittorrent_paths_conf }}"
section: Preferences
option: Connection\PortRangeMin
value: "{{ lookup('vars', qbittorrent_name + '_docker_ports_56881', default=qbittorrent_docker_ports_56881) }}"
no_extra_spaces: true
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"

- name: Post-Install | Settings | Update WebUI\HostHeaderValidation 'qBittorrent.conf' config settings
community.general.ini_file:
path: "{{ qbittorrent_paths_conf }}"
Expand Down
12 changes: 12 additions & 0 deletions roles/qbittorrent/tasks/subtasks/pre-install/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@
group: "{{ user.name }}"
mode: "0775"

- name: Pre-Install | Settings | Update Connection\PortRangeMin in 'qBittorrent.conf' config settings (legacy)
community.general.ini_file:
path: "{{ qbittorrent_paths_conf }}"
section: Preferences
option: Connection\PortRangeMin
value: "{{ lookup('vars', qbittorrent_name + '_docker_ports_56881', default=qbittorrent_docker_ports_56881) }}"
no_extra_spaces: true
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"

- name: Pre-Install | Settings | Update WebUI\HostHeaderValidation 'qBittorrent.conf' config settings
community.general.ini_file:
path: "{{ qbittorrent_paths_conf }}"
Expand Down

0 comments on commit e7e63ac

Please sign in to comment.