The below requirements are needed on the host that executes this module.
Parameter |
Choices/Defaults |
Comments |
---|---|---|
encoding
|
|
message encoding
|
host
|
|
host to connect, overrides user info
|
msg
required |
|
The message body.
|
password
required |
|
password for user to connect
|
port
|
Default:
5222
|
port to connect to, overrides default
|
to
required |
|
user ID or name of the room, when using room use a slash to indicate your nick.
|
user
required |
|
User as which to connect
|
# send a message to a user
- jabber:
user: mybot@example.net
password: secret
to: friend@example.net
msg: Ansible task finished
# send a message to a room
- jabber:
user: mybot@example.net
password: secret
to: mychaps@conference.example.net/ansiblebot
msg: Ansible task finished
# 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
This module is flagged as stableinterface which means that the maintainers for this module guarantee that no backward incompatible interface changes will be made.
Hint
If you notice any issues in this documentation you can edit this document to improve it.