Update 2 files

- /roles/qbittorrent/tasks/main.yml
- /group_vars/all.yml
This commit is contained in:
Administrator 2025-12-08 13:18:27 +05:00
parent 63f065f54e
commit 6bdeeeed01
2 changed files with 16 additions and 4 deletions

View File

@ -148,6 +148,7 @@ qbittorrent_puid: 1000
qbittorrent_pgid: 1000 qbittorrent_pgid: 1000
qbittorrent_port_webui: 45133 qbittorrent_port_webui: 45133
qbittorrent_port_torrent: 6881 qbittorrent_port_torrent: 6881
qbittorrent_password: "13qeadZC"
# ------------ data (192.168.1.202) ------------ # ------------ data (192.168.1.202) ------------
bookstack_base_dir: "/mnt/bookstack" bookstack_base_dir: "/mnt/bookstack"

View File

@ -10,7 +10,15 @@
- "{{ qbittorrent_downloads_dir }}" - "{{ qbittorrent_downloads_dir }}"
tags: qbittorrent tags: qbittorrent
- name: Create initial qBittorrent configuration - name: Generate password hash for qBittorrent
shell: |
echo -n "admin:Web UI:{{ qbittorrent_password }}" | md5sum | awk '{print $1}'
register: password_hash
changed_when: false
no_log: true
tags: qbittorrent
- name: Create qBittorrent configuration with password hash
copy: copy:
content: | content: |
# Auto-generated qBittorrent configuration # Auto-generated qBittorrent configuration
@ -42,6 +50,9 @@
WebUI\HostHeaderValidation=false WebUI\HostHeaderValidation=false
WebUI\DomainList=192.168.1.201:{{ qbittorrent_port_webui }},localhost:{{ qbittorrent_port_webui }} WebUI\DomainList=192.168.1.201:{{ qbittorrent_port_webui }},localhost:{{ qbittorrent_port_webui }}
WebUI\MaxAuthenticationFailCount=-1 WebUI\MaxAuthenticationFailCount=-1
WebUI\Username=admin
WebUI\Password_PBKDF2="@ByteArray({{ password_hash.stdout }}:100000)"
WebUI\Password_ha1=@ByteArray({{ password_hash.stdout }})
Advanced\RecheckOnCompletion=false Advanced\RecheckOnCompletion=false
dest: "{{ qbittorrent_config_dir }}/qBittorrent.conf" dest: "{{ qbittorrent_config_dir }}/qBittorrent.conf"
mode: '0644' mode: '0644'
@ -80,11 +91,11 @@
🔗 Доступ: http://{{ ansible_host }}:{{ qbittorrent_port_webui }} 🔗 Доступ: http://{{ ansible_host }}:{{ qbittorrent_port_webui }}
👤 Имя пользователя: admin 👤 Имя пользователя: admin
🔑 Пароль: adminadmin 🔑 Пароль: {{ qbittorrent_password }}
⚠️ ВАЖНО: Смените пароль после первого входа!
📁 Директории: 📁 Директории:
- Конфигурация: {{ qbittorrent_config_dir }} - Конфигурация: {{ qbittorrent_config_dir }}
- Загрузки: {{ qbittorrent_downloads_dir }} - Загрузки: {{ qbittorrent_downloads_dir }}
⚠️ Примечание: Пароль установлен в конфиге и должен работать стабильно.
tags: qbittorrent tags: qbittorrent