ansible/roles/monit-dashboard/templates/servers.json

15 lines
464 B
JSON
Raw Normal View History

2020-08-09 05:02:18 +00:00
{
"dispatcher": {
"url": "http://127.0.0.1:2812",
"user": "{{ monit_web_user }}",
"passwd": "{{ monit_web_pasword }}"
}{{ "," if items is defined and (items|length>0) else "" }}
2020-08-09 05:02:18 +00:00
{% for frame in items %}
"{{ frame.name }}": {
"url": "http://{{ frame.wireguard_address }}:2812",
"user": "{{ frame.monit_web_user }}",
"passwd": "{{ frame.monit_web_pasword }}"
}{{ "," if not loop.last }}
{% endfor %}
}