Skip to content

dfwmlb/ansible-callback-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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://raw.githubusercontent.com/dfwmlb/ansible-callback-telegram/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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages