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