fix acl template

This commit is contained in:
Robert Kaussow 2018-11-07 21:32:12 +01:00
parent a8ebe08da9
commit dcdcac728a

View File

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