alemuro.mosquitto

alemuro.mosquitto

=========

This role helps you install and manage the Mosquitto service on Raspbian devices.

Role Variables


Name Default Description
alemuro_mosquitto_install_clients yes Set to yes if you want to install the mosquitto-clients package.
alemuro_mosquitto_settings A set of options to configure Mosquitto.
alemuro_mosquitto_password_file /etc/mosquitto/pwfile The location of the file that contains the passwords.
alemuro_mosquitto_user_list List of users. Each user has a username and a password (htpasswd format).

alemuro_mosquitto_settings

alemuro_mosquitto_settings:
  allow_anonymous: no         # Don't allow anonymous connections
  persistence: yes            # Enable message persistence
  log_timestamp: yes          # Include timestamps in logs
  log_timestamp_format: "%Y-%m-%dT%H:%M:%S"  # Format for timestamps

alemuro_mosquitto_user_list

alemuro_mosquitto_user_list:
  admin: <htpasswd value>     # Replace <htpasswd value> with the actual password

Example Playbook


Here’s an example of how to use this role, including passing variables as parameters:

    - hosts: pi
      roles:
         - { role: alemuro.mosquitto } # Use the alemuro.mosquitto role

Usage


  • To install:
$ ansible-galaxy -p roles alemuro.mosquitto

License


Apache License

Informazioni sul progetto

Ansible role to manage mopsquitto on Raspbian devices.

Installa
ansible-galaxy install alemuro.mosquitto
Licenza
apache-2.0
Download
273
Proprietario
Platform Engineer Tech Lead @ Mango