mosquitto
Setup mosquitto mqtt broker. Eclipse Mosquitto is a message broker that implements the MQTT protocol. It is lightweight and suitable for use on all devices from low power single board computers to full servers.
- Default Variables
- mosquitto_acl
- mosquitto_acl_enabled
- mosquitto_acl_file
- mosquitto_base_dir
- mosquitto_bind_address
- mosquitto_ca_path
- mosquitto_group
- mosquitto_packages_extra
- mosquitto_password_auth_enabled
- mosquitto_password_auth_file
- mosquitto_password_auth_users
- mosquitto_persistence_enabled
- mosquitto_persistence_path
- mosquitto_pid_file
- mosquitto_port
- mosquitto_tls_cert_path
- mosquitto_tls_cert_source
- mosquitto_tls_ciphers
- mosquitto_tls_enabled
- mosquitto_tls_key_path
- mosquitto_tls_key_source
- mosquitto_user
- Discovered Tags
- Dependencies
mosquitto_acl: []
mosquitto_acl:
- name: iot
user: admin
acls:
- acl_base: topic # (topic|pattern, defaults to topic)
acl_topic: "#"
acl_policy: readwrite
- name: readonly_iot
user: user1
acls:
- acl_base: topic
acl_topic: my/devices
acl_policy: readwrite
mosquitto_acl_enabled: false
mosquitto_acl_file: '{{ mosquitto_base_dir }}/aclfile'
mosquitto_base_dir: /etc/mosquitto
mosquitto_bind_address: '{{ ansible_default_ipv4.address }}'
mosquitto_ca_path: /etc/pki/tls/certs/
mosquitto_group: mosquitto
mosquitto_packages_extra: []
mosquitto_password_auth_enabled: false
mosquitto_password_auth_file: '{{ mosquitto_base_dir }}/passwd'
mosquitto_password_auth_users: []
mosquitto_password_auth_users:
- name: admin
password: mysecret
state: present
- name: user1
password: very_secure
state: absent
mosquitto_persistence_enabled: false
mosquitto_persistence_path: /var/lib/mosquitto/mosquitto.db
mosquitto_pid_file: /var/run/mosquitto.pid
mosquitto_port: 1883
mosquitto_tls_cert_path: '{{ mosquitto_base_dir }}/tls/certs/mycert.pem'
mosquitto_tls_cert_source: mycert.pem
mosquitto_tls_ciphers:
- DEFAULT
- '!aNULL'
- '!eNULL'
- '!LOW'
- '!EXPORT'
- '!SSLv2'
- '@STRENGTH'
mosquitto_tls_enabled: false
mosquitto_tls_key_path: '{{ mosquitto_base_dir }}/tls/private/mykey.pem'
mosquitto_tls_key_source: mykey.pem
mosquitto_user: mosquitto
- tls_renewal
None.