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"