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