Обновить playbooks/statistica.yml

This commit is contained in:
2026-08-27 00:03:16 +03:00
parent 4ca1fdd380
commit 7ab079dd6f
+7 -5
View File
@@ -52,12 +52,14 @@
cmd: "adguardvpn-cli disconnect && adguardvpn-cli connect"
changed_when: true
- name: Send Telegram notification
community.general.telegram:
token: "{{ telegram_token }}"
api_args:
- name: Send Telegram notification via API
ansible.builtin.uri:
url: "https://api.telegram.org/bot{{ telegram_token }}/sendMessage"
method: POST
body_format: json
body:
chat_id: "{{ telegram_chat_id }}"
text: "✅ Список исключений обновлён. Добавлено {{ domains | length }} доменов."
use_proxy: no # явно отключаем прокси
disable_web_page_preview: yes
delegate_to: localhost
when: telegram_token is defined and telegram_chat_id is defined