diff --git a/templates/etc/mosquitto/mosquitto.conf.j2 b/templates/etc/mosquitto/mosquitto.conf.j2 index 8c2f28c..15f572b 100644 --- a/templates/etc/mosquitto/mosquitto.conf.j2 +++ b/templates/etc/mosquitto/mosquitto.conf.j2 @@ -617,7 +617,9 @@ password_file {{ mosquitto_password_auth_file }} # # If an auth_plugin is used as well as acl_file, the auth_plugin check will be # made first. -#acl_file +{% if mosquitto_acl_enabled %} +acl_file {{ mosquitto_acl_file }} +{% endif %} # ----------------------------------------------------------------- # External authentication and topic access plugin options