{ "datacenter": "{{ consul_dc_name }}", "node_name": "{{ vm_name }}", "data_dir": "/opt/consul", "encrypt": "{{ gossip.stdout }}", "bind_addr": "{{ vm_ip }}", "addresses": { "https": "{{ vm_ip }}", "http": "{{ vm_ip }}", "dns": "{{ vm_ip }}", "grpc": "{{ vm_ip }}" }, "ports": { "grpc": 8502 }, {% if 'server' in consul_node_role %} "server": true, "bootstrap_expect":3, {% else %} "bootstrap_expect":0, {% endif %} "retry_join": [{% for host in groups['admin'] %}"{{ hostvars[host]['vm_ip'] }}"{% if not loop.last %},{% endif %}{% endfor %}], "ui_config": { "enabled": true }, "connect": { "enabled": true } }