Added credentials for telegram bot

This commit is contained in:
2025-07-15 20:36:16 +02:00
parent f6c767f122
commit ac3bc5742d
2 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,15 @@
- name: Fail if Telegram bot credentials are not set
assert:
that:
- telegram_bot_token != ""
- telegram_chat_id != ""
fail_msg: |
Telegram configuration is incomplete!
Please provide nonempty values for:
- telegram_bot_token # Your Telegram bots API token
- telegram_chat_id # The Telegram chat ID to send messages to
when: run_once_systemd_notifier_telegram is not defined
- name: install curl
pacman:
name: curl