xoxys.mosquitto/defaults/main.yml

42 lines
1.1 KiB
YAML

---
mosquitto_base_dir: /etc/mosquitto
mosquitto_pid_file: /var/run/mosquitto.pid
mosquitto_user: mosquitto
mosquitto_group: mosquitto
mosquitto_port: 1883
mosquitto_bind_address: "{{ ansible_default_ipv4.address }}"
mosquitto_persistence_enabled: False
mosquitto_persistence_path: /var/lib/mosquitto/mosquitto.db
mosquitto_iptables_enabled: False
mosquitto_password_auth_enabled: False
mosquitto_password_auth_file: "{{ mosquitto_base_dir }}/passwd"
# mosquitto_password_auth_users: (defaults to not set)
# - admin:
# password: mysecret
# state: present
# - user1:
# password: very_secure
# state: absent
mosquitto_acl_enabled: False
mosquitto_acl_file: "{{ mosquitto_base_dir }}/aclfile"
# mosquitto_acl: (defaults to not set)
# - iot:
# user: admin
# acl_base: topic # (topic|pattern, defaults to topic)
# acl_topic: "#"
# acl_policy: readwrite
# - readonly_iot:
# user: user1
# acl_base: topic
# acl_topic: my/devices
# acl_policy: readwrite
mosquitto_tls_enabled: False
mosquitto_ca_path: /etc/pki/tls/certs/