aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/consul/templates/services.json.j2
blob: 3245ba92a4675b2fd3c19cc2b5a2bb7fcffe8cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{
    "services": [
{% for item in consul_services %}
        {
            "name": "{{ item.name }}",
            "port": {{ item.port }}
        }
{%- if not loop.last %},
{% endif %}
{% endfor %}

    ]
}