Skip to content

Latest commit

 

History

History
81 lines (39 loc) · 1.03 KB

mqtt.rst

File metadata and controls

81 lines (39 loc) · 1.03 KB

mqtt -- event-driven-ansible source plugin for mqtt

Subscribes topic on mqtt and prints messages to ansible-rulebook

Test script stand-alone by exporting MQTT_HOST and MQTT_TOPIC as environment variables

host (True, any, None)
URL for mqtt broker
topic (True, any, None)
Topic to subscribe to for events

Note

  • This is currently only capable of basic authentication and is used so far only for demo purposes
- name: Minecraft events
  hosts: localhost
  sources:
    - cloin.eda.mqtt:
        host: localhost
        topic: messages

  rules:
    - name: New minecraft event
      condition: event.type is defined
      action:
        debug:

Authors

  • Colin McNaughton (@cloin)