diff --git a/roles/pvc/templates/patroni/patroni.yml.j2 b/roles/pvc/templates/patroni/patroni.yml.j2 index 86d8089..98e631f 100644 --- a/roles/pvc/templates/patroni/patroni.yml.j2 +++ b/roles/pvc/templates/patroni/patroni.yml.j2 @@ -7,7 +7,7 @@ restapi: connect_address: '{{ ansible_hostname }}.{{ pvc_cluster_domain }}:8008' zookeeper: - hosts: [ {% for node in pvc_nodes if node.is_coordinator %}{{ node.hostname }}.{{ pvc_cluster_domain }}:2181,{% endfor %} ] + hosts: [ {% for node in pvc_nodes if node.is_coordinator %}"{{ node.hostname }}.{{ pvc_cluster_domain }}:2181",{% endfor %} ] bootstrap: dcs: