diff --git a/roles/qbittorrent/tasks/subtasks/post-install/settings/main.yml b/roles/qbittorrent/tasks/subtasks/post-install/settings/main.yml index f6efd5048c..9b870dc6a6 100644 --- a/roles/qbittorrent/tasks/subtasks/post-install/settings/main.yml +++ b/roles/qbittorrent/tasks/subtasks/post-install/settings/main.yml @@ -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 }}" diff --git a/roles/qbittorrent/tasks/subtasks/pre-install/main.yml b/roles/qbittorrent/tasks/subtasks/pre-install/main.yml index 6ab34db381..4a356a6192 100644 --- a/roles/qbittorrent/tasks/subtasks/pre-install/main.yml +++ b/roles/qbittorrent/tasks/subtasks/pre-install/main.yml @@ -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 }}"