Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Ansible tasks to install Mosquito MQTT Broker
# install mqtt broker
- name: add mosquitto key
apt_key: url=http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key state=present
- name: add mosquitto repo
apt_repository: repo='deb http://repo.mosquitto.org/debian wheezy main' state=present update_cache=yes
- name: install mosquitto
apt: name=mosquitto state=present
Owner

Only tested on raspbian so far but should work on other apt based systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment