From 7ab079dd6fe3f3ecde06fb9b65396794f1e719e0 Mon Sep 17 00:00:00 2001 From: administrator Date: Thu, 27 Aug 2026 00:03:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20playbooks/statistica.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/statistica.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/playbooks/statistica.yml b/playbooks/statistica.yml index 246d153..12a3240 100644 --- a/playbooks/statistica.yml +++ b/playbooks/statistica.yml @@ -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 \ No newline at end of file