Обновить playbooks/statistica.yml
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user