xoxys.mosquitto/templates/etc/mosquitto/aclfile.j2

12 lines
283 B
Plaintext
Raw Normal View History

2018-11-07 19:44:06 +00:00
# {{ ansible_managed }}
2019-04-28 14:36:13 +00:00
{% for key, value in mosquitto_acl.iteritems() %}
{% if not key == "all" %}
user {{ key }}
2018-11-07 19:44:06 +00:00
{% endif %}
2019-04-28 14:36:13 +00:00
{% for item in value %}
2018-11-07 21:00:41 +00:00
{{ item.acl_base if item.acl_base is defined else 'topic' }} {{ item.acl_policy }} {{ item.acl_topic }}
2018-11-07 19:44:06 +00:00
{% endfor %}
2018-11-07 21:11:13 +00:00
{% endfor %}