xoxys.mosquitto/templates/etc/mosquitto/aclfile.j2
Robert Kaussow a17324b935
All checks were successful
continuous-integration/drone/push Build is passing
fix ansible_managed handling
2019-08-27 08:51:37 +02:00

11 lines
283 B
Django/Jinja

{{ ansible_managed | comment }}
{% for item in mosquitto_acl %}
{% if not item.name == "all" %}
user {{ item.name }}
{% endif %}
{% for acl in item.acls %}
{{ acl.acl_base if acl.acl_base is defined else 'topic' }} {{ acl.acl_policy }} {{ acl.acl_topic }}
{% endfor %}
{% endfor %}