computer-playbook/roles/systemd_notifier_telegram/templates/systemd_notifier_telegram.sh.j2

3 lines
164 B
Django/Jinja

#!/bin/bash
/usr/bin/curl -s -X POST https://api.telegram.org/bot{{ telegram_bot_token }}/sendMessage -d chat_id={{ telegram_chat_id }} -d text="service $1 failed"