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)
This plugin requires python libs:
- pyTelegramBotApi
- prettytable
-
Install python libraries and upgrade requests lib to latest
$ pip install pyTelegramBotApi $ pip install prettytable $ pip install requests --upgrade
-
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
-
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