sadpdtchr / ansible-callback-telegram

simple telegram callback plugin for ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Callback plugin for Telegram

Used for your ansible playbook notification delivery Its highly recommended to use socks5 proxy to bypass RKN's restrictions but its not required (installed tor with socks5 proxy are perfect)

Requiremets

This plugin requires python libs:

  • pyTelegramBotApi
  • prettytable

Install

  1. Install python libraries and upgrade requests lib to latest

    $ pip install pyTelegramBotApi
    $ pip install prettytable
    $ pip install requests --upgrade
  2. Download plugin and put it to ansible

    $ cd /path/to/your/ansible/plugins/callback
    $ curl -O https://github.com/dfwmlb/ansible-callback-telegram/blob/master/telegram.py
  3. Add configuration to your ansible.cfg

    callback_whitelist = telegram
    
    [callback_telegram]
    tg_token = ENTER_TOKEN
    tg_chat_id = ENTER_CHAT_ID
    socks5_uri = socks5://localhost:9050

Screens

About

simple telegram callback plugin for ansible


Languages

Language:Python 100.0%