mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Optimized alarm and system handlers
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
|
||||
- include_role:
|
||||
name: sys-service
|
||||
vars:
|
||||
# If the Telegram notifier fails, trigger the Email notifier,
|
||||
# passing the failing unit's name as the instance text.
|
||||
system_service_tpl_on_failure: "{{ ('sys-ctl-alm-email@') | get_service_name(SOFTWARE_NAME, False) }}%n.service"
|
||||
|
||||
- name: install curl
|
||||
community.general.pacman:
|
||||
|
@@ -15,4 +15,4 @@ fi
|
||||
/usr/bin/curl -s -X POST \
|
||||
"https://api.telegram.org/bot{{ telegram_bot_token }}/sendMessage" \
|
||||
-d chat_id="{{ telegram_chat_id }}" \
|
||||
--data-urlencode text="service ${friendly} on ${host} failed"
|
||||
--data-urlencode text="service ${friendly//\//-} on ${host} failed"
|
||||
|
Reference in New Issue
Block a user