xoxys.mosquitto/templates/etc/mosquitto/aclfile.j2

9 lines
243 B
Django/Jinja

# {{ ansible_managed }}
{% for item in mosquitto_acl.values() %}
{% if not item.user == "all" %}
{{ item.user }}
{% endif %}
{{ item.acl_base if item.acl_base is defined else 'topic' }} {{ item.acl_policy }} {{ item.acl_topic }}
{% endfor %}