{{ ansible_managed | comment }} # Logging Configuration log_timestamp true log_type all # Listener per_listener_settings true {% for elem in mosquitto_listeners %} ### Listener '{{ elem.name }}' listener {{ elem.listener }} {% for key, value in elem | dictsort %} {% if key not in ["listener", "name", "users", "auth_anonymous", "auth_patterns"] %} {{ key }} {{ value }} {% endif %} {% endfor %} password_file /etc/mosquitto/users_{{ elem.name }} acl_file /etc/mosquitto/acl_{{ elem.name }} {% endfor %} {% for elem in mosquitto_bridges %} {% if loop.first %} # Bridges {% endif %} connection {{ elem.connection }} {% for key, value in elem | dictsort %} {% if key not in ["connection", "topics"] %} {{ key }} {{ value }} {% endif %} {% endfor %} {% for topic in elem.topics %} topic {{ topic.topic }} {% endfor %} {% endfor %}