xoxys.mosquitto/templates/etc/mosquitto/aclfile.j2
Robert Kaussow b570e08a74
Some checks failed
continuous-integration/drone/push Build is failing
fix acl template
2019-04-28 16:36:13 +02:00

12 lines
283 B
Django/Jinja

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