fix templating
This commit is contained in:
parent
f45db7d27e
commit
4f5f167085
@ -41,5 +41,6 @@
|
||||
when:
|
||||
- mosquitto_acl_enabled
|
||||
- mosquitto_acl is defined
|
||||
notify: __mosquitto_restart
|
||||
become: True
|
||||
become_user: root
|
||||
|
@ -1,8 +1,11 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% for item in mosquitto_acl.values() %}
|
||||
{% for dict in mosquitto_acl %}
|
||||
{% for item in dict.values() %}
|
||||
{% if not item.user == "all" %}
|
||||
{{ item.user }}
|
||||
{% endif %}
|
||||
{{ item.acl_base if item.acl_base is defined else 'topic' }} {{ item.acl_policy }} {{ item.acl_topic }}
|
||||
{% endfor %}
|
||||
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user