{{ ansible_managed | comment }} {% for entry in listener.auth_anonymous | default([]) %} {% if loop.first %} # Anonymous access {% endif %} {{ entry }} {% endfor %} {% for user in listener.users %} {% if loop.first %} # User access {% endif %} user {{ user.username }} {% for access_list in user.acl | default([]) %} topic {{ access_list.permissions }} {{ access_list.topic }} {% if loop.last %} {% endif %} {% endfor %} {% endfor %} {% for entry in listener.auth_patterns | default([]) %} {% if loop.first %} # Global patterns {% endif %} {{ entry }} {% endfor %}