mosquitto
Deploy the Eclipse Mosquitto MQTT broker as a Podman quadlet.
Usage
- hosts: all roles: - role: giftpilz0.container.mosquittoVariables
- podman_userstr
System user for rootless podman operations.
Default{{ ansible_user }} Custom image name and tag.
Defaultlocalhost/mosquitto-custommosquitto release built from source (e.g. 2.1.2); the go-auth plugin is built against it.
Default2.1.2Mosquitto-go-auth release used to build the image.
Default3.5.0Enable podman auto-update for this container.
DefaulttrueCreate and manage the podman network.
DefaulttruePodman network name.
Defaultmosquitto-internalPodman network driver.
DefaultbridgeExpose container ports on the host.
DefaulttrueHost IP to bind exposed ports to.
Default127.0.0.1- mosquitto_port_maplist[str]
Host:container port mappings.
Default- 1883:1883 - 9001:9001
- mosquitto_usersdict
Map of username to clear-text password; hashes are generated during deployment.
Default{} Regenerate all password hashes instead of keeping deployed ones.
DefaultfalseMap of username to password_hash for the password file.
Default{}Map of usernames to ACL rule objects or raw topic rules.
Default{}- mosquitto_acl_patternslist[dict]
ACL pattern rules using %u and %c substitutions.
Default- access: readwrite topic: '%u/#'
- mosquitto_acl_ruleslist[str]
Raw Mosquitto ACL lines for advanced rules.
Default[] Map passed through as auth_opt_* go-auth settings.
Defaultbackends: files files_password_path: /mosquitto/config/passwd files_acl_path: /mosquitto/config/acl
Extra environment variables injected into the container.
Default{}Optional container entrypoint override.
Default""- mosquitto_extra_fileslist[dict]
Arbitrary file entries with src (controller path) or source (target path), dest, optional mount, mode, and template.
Default[] - mosquitto_extra_dirslist[dict]
Arbitrary directory entries with src (controller directory) or source (target path), dest, optional mount and mode.
Default[]
No variables match.