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

12 lines
285 B
Django/Jinja

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