mosquitto: Initial version of role

This commit is contained in:
Timo Makinen 2022-10-06 17:33:00 +00:00
parent b61781bd94
commit e7cc5866c8
3 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# authentication
acl_file /etc/mosquitto/acl.conf
password_file /etc/mosquitto/passwd
allow_anonymous false
# listen to mqtt
listener 1883
protocol mqtt
# listen to mqtt over websockets
listener 8883
protocol websockets
# tls options
certfile {{ tls_certs }}/{{ inventory_hostname }}.crt
keyfile {{ tls_private }}/{{ inventory_hostname }}.key
cafile {{ tls_certs }}/ca.crt