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

12 lines
285 B
Plaintext
Raw Normal View History

2018-11-07 20:44:06 +01:00
# {{ ansible_managed }}
2018-11-07 22:11:13 +01:00
{% for dict in mosquitto_acl %}
{% for item in dict.values() %}
2018-11-07 22:00:41 +01:00
{% if not item.user == "all" %}
user {{ item.user }}
2018-11-07 20:44:06 +01:00
{% endif %}
2018-11-07 22:00:41 +01:00
{{ item.acl_base if item.acl_base is defined else 'topic' }} {{ item.acl_policy }} {{ item.acl_topic }}
2018-11-07 20:44:06 +01:00
{% endfor %}
2018-11-07 22:11:13 +01:00
{% endfor %}