Brian Coca recently submitted a
jabber module for use with Ansible. This
module allows an Ansible playbook to connect to an XMPP service and just push
out a message, such as “all’s well” or “I’m done”, when, say, a
Playbook completes. In addition to the `mail’ module (created by Dag Wieers and
heavily improved upon by yours truly :-), I thought I’d add two more.
The first is a module which fires off a message to an IRC channel.
That was posted to the channel by this play:
The second (very similar) module I created works similarly, but notifies via MQTT. MQTT is the new hotness in the Internet of Things (IoT), and we talked about it here recently. Using this module, Ansible can “notify” by publishing an arbitrary payload to an MQTT topic.
That subscription was published to by this play:
(Publishing topics to an MQTT broker would also be a neat way of watching Ansible at work with a callback; maybe another time.)