ansible.builtin.telegram (v2.3.0.0-1) — module

module for sending notifications via telegram

| "added in version" 2.2 of ansible.builtin"

Authors: Artem Feofanov (@tyouxa)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.0.0.post1

Description

Send notifications via telegram bot, to a verified group or user

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

- name: send a message to chat in playbook
  telegram:
    token: 'bot9999999:XXXXXXXXXXXXXXXXXXXXXXX'
    chat_id: 000000
    msg: Ansible task finished

Inputs

    
msg:
    description:
    - What message you wish to send.
    required: true

token:
    description:
    - Token identifying your telegram bot.
    required: true

chat_id:
    description:
    - Telegram group or user chat_id
    required: true

Outputs

msg:
  description: The message you attempted to send
  returned: success
  sample: Ansible task finished
  type: string