Skip to content

Instantly share code, notes, and snippets.

@justinatomatic
Created March 11, 2015 02:59
Show Gist options
  • Save justinatomatic/c2cf67a6c49bcdc8702e to your computer and use it in GitHub Desktop.
Save justinatomatic/c2cf67a6c49bcdc8702e to your computer and use it in GitHub Desktop.
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
@justinatomatic
Copy link
Author

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