Skip to content

Mosquitto MQTT broker ansible role for home assistant

Notifications You must be signed in to change notification settings

mpataki/ansible-ha-mosquitto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-ha-mosquitto

Build Status

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published