Skip to content

Mosquitto MQTT broker ansible role for home assistant

Notifications You must be signed in to change notification settings

uhlig-it/ansible-role-mosquitto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-mosquitto

Build Status

This is a customized fork of mpataki/ansible-ha-mosquitto

TODO

  • Let's Encrypt does not work on first run; it returns non-zero
  • restart of mosquitto is not reliable
  • letsencrypt needs to work with staging env

This ansible role installs and configures a Mosquitto MQTT broker. It exposes a server on port 8883 with TLS encryption which can be exposed to the internet, and another on 1883 without encryption intended for use only within your home's network.

What this role doesn't (currently) do is setup MQTT level user credentials.

Requirements

Really this should work on any debian based system, but has been tested on a Raspberry Pi running Hassbian.

Role Variables

  • domain_name
    • Ex. my_home.duckdns.org
    • This is the domain name where your pi can be reached from the internet.

Dependencies

  • ha-letsencrypt for SSL. This can be installed via git or via ansible galaxy.

Example Playbook

    - hosts: pi
      vars:
        domain_name: my_home.duckdns.org
      roles:
         - role: mpataki.ha-mosquitto

License

MIT

About

Mosquitto MQTT broker ansible role for home assistant

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published