jabber - Send a message to jabber user or chat room

Author:Brian Coca

Synopsis

New in version 1.2.

Send a message to jabber

Options

parameter required default choices comments
encoding no
    message encoding
    host no
      host to connect, overrides user info
      msg yes
        The message body.
        password yes
          password for user to connect
          port no 5222
            port to connect to, overrides default
            to yes
              user ID or name of the room, when using room use a slash to indicate your nick.
              user yes
                User as which to connect

                Note

                Requires xmpp

                Examples


                # 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"
                

                Table Of Contents

                Previous topic

                irc - Send a message to an IRC channel

                Next topic

                mail - Send an email