computer-playbook/roles/systemd-notifier-telegram
Kevin Veen-Birkenbach b7e3a7f838 Added .cymais.service suffix to make cymais files more visible 2024-01-10 11:18:38 +01:00
..
handlers Added .cymais.service suffix to make cymais files more visible 2024-01-10 11:18:38 +01:00
tasks Added .cymais.service suffix to make cymais files more visible 2024-01-10 11:18:38 +01:00
templates Changed systemd-notifier namings 2023-12-03 11:24:17 +01:00
vars Changed systemd-notifier namings 2023-12-03 11:24:17 +01:00
README.md Changed License 2023-12-26 17:42:10 +01:00

README.md

Description

This Ansible role installs the necessary components for sending Telegram notifications through systemd when any service fails. It configures the systemd-notifier-telegram service and handles the setup of Telegram bot parameters and notification templates.

Features include:

  • Installation and configuration of a Telegram notifier service.
  • Customizable templates for Telegram messages sent on service failure.

This role is part of the systemd-notifier suite, which provides a comprehensive solution for service failure notifications in a systemd environment.

Requirements

This role has the following requirements:

  • Access to a Telegram bot token for sending messages.
  • Availability of the curl package on the target system.

Role Variables

The following variables can be customized in the role's vars/main.yml file:

  • systemd_telegram_folder: The path to the folder where Telegram-related scripts and configurations will be stored.
  • systemd_telegram_script: The full path to the systemd-telegram.sh script.

This role was created as part of a conversation with OpenAI's ChatGPT and can be found here.

Usage

To use this role, include it as a dependency in your playbook or role that requires Telegram notifications. Ensure that the systemd-notifier-telegram role is correctly referenced and configured.

Contact Information

For any questions or feedback, please contact the author:

Author: Kevin Veen-Birkenbach Email: kevin@veen.world