fix acl template
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2019-04-28 16:36:13 +02:00
parent 1d0ac8ba9d
commit b570e08a74
1 changed files with 4 additions and 4 deletions

View File

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