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