fix acl template

This commit is contained in:
Robert Kaussow 2018-11-07 21:32:12 +01:00
parent a8ebe08da9
commit dcdcac728a
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
# {{ ansible_managed }}
{% for item in mosquitto_acl.values() %}
{% if not item.user == "all" %}
{{ item.user }}
{% for acl in mosquitto_acl %}
{% if not acl.user == "all" %}
{{ acl.user }}
{% 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 %}