mash-playbook/docs/services/mosquitto.md
2023-07-03 13:10:38 +02:00

763 B

Mosquitto Ansible Role

Mosquitto is an open source MQTT broker.

Configuration

To enable this service, add the following configuration to your vars.yml file and re-run the installation process:

mosquitto_enabled: true

Usage

After installation, you can use just run-tags mosquitto-add-user --extra-vars=username=<username> --extra-vars=password=<password>" to create a user. For the setting to take effect, you must restart the container.

You can then start to send and subscribe to MQTT topics. Use port 1883 and the servers IP or any domain you configured to point at this server.

Alternatives