{{ ansible_managed | comment }} {% for item in mosquitto_acl %} {% if not item.name == "all" %} user {{ item.name }} {% endif %} {% for acl in item.acls %} {{ acl.acl_base if acl.acl_base is defined else 'topic' }} {{ acl.acl_policy }} {{ acl.acl_topic }} {% endfor %} {% endfor %}