mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-09 10:56:01 +00:00
Optimized TELEGRAM_BOT implementation
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
- name: Fail if Telegram bot credentials are not set
|
||||
assert:
|
||||
that:
|
||||
- telegram_bot_token != ""
|
||||
- telegram_chat_id != ""
|
||||
- TELEGRAM_BOT_TOKEN != ""
|
||||
- TELEGRAM_CHAT_ID != ""
|
||||
fail_msg: |
|
||||
Telegram configuration is incomplete!
|
||||
Please provide non‑empty values for:
|
||||
- telegram_bot_token # Your Telegram bot’s API token
|
||||
- telegram_chat_id # The Telegram chat ID to send messages to
|
||||
- TELEGRAM_BOT_TOKEN # Your Telegram bot’s API token
|
||||
- TELEGRAM_CHAT_ID # The Telegram chat ID to send messages to
|
||||
when: MODE_ASSERT | bool
|
||||
|
||||
- include_role:
|
||||
|
||||
Reference in New Issue
Block a user