Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 1.46 KB

File metadata and controls

54 lines (45 loc) · 1.46 KB

smarthome.mosquitto

Installs the eclipse-mosquitto image.

Role Variables

  • mosquitto_version
    • Default: latest
    • Description: The version of the Mosquitto image to install. See published tags.
    • Type: str
    • Required: no
  • mosquitto_port
    • Default: 1883
    • Description: The MQTT listen port.
    • Type: int
    • Required: no
  • mosquitto_websocket_port
    • Default: 9001
    • Description: The MQTT WebSockets listen port.
    • Type: int
    • Required: no
  • mosquitto_install_dir
    • Default: /opt/docker/mosquitto
    • Description: The directory where Mosquitto will be installed.
    • Type: str
    • Required: no
  • mosquitto_env
    • Default: {}
    • Description: Docker container environment variables.
    • Type: dict
    • Required: no
  • mosquitto_user
    • Default: { name: "{{ ansible_user }}", password: "mosquitto" }
    • Description: Authentication credentials for the Mosquitto instance. See docs.
    • Type: dict with keys name (str) and password (str)
    • Required: no

Dependencies

Example Playbook

- hosts: localhost

  vars:
    mosquitto_user:
      name: "mosquitto"
      password: "changeme"

  roles:
    - artyorsh.smarthome.mosquitto