ansible.builtin.jabber (v2.9.27) — module

Send a message to jabber user or chat room

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

Authors: Brian Coca (@bcoca)

stableinterface | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Send a message to jabber


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# send a message to a user
- jabber:
    user: mybot@example.net
    password: secret
    to: friend@example.net
    msg: Ansible task finished
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# send a message to a room
- jabber:
    user: mybot@example.net
    password: secret
    to: mychaps@conference.example.net/ansiblebot
    msg: Ansible task finished
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# send a message, specifying the host and port
- jabber:
    user: mybot@example.net
    host: talk.example.net
    port: 5223
    password: secret
    to: mychaps@example.net
    msg: Ansible task finished

Inputs

    
to:
    description:
    - user ID or name of the room, when using room use a slash to indicate your nick.
    required: true

msg:
    description:
    - The message body.
    required: true

host:
    description:
    - host to connect, overrides user info

port:
    default: 5222
    description:
    - port to connect to, overrides default

user:
    description:
    - User as which to connect
    required: true

encoding:
    description:
    - message encoding

password:
    description:
    - password for user to connect
    required: true