diff --git a/templates/patroni.yaml.j2 b/templates/patroni.yaml.j2 index 9189a8e..215a1a7 100644 --- a/templates/patroni.yaml.j2 +++ b/templates/patroni.yaml.j2 @@ -123,7 +123,7 @@ bootstrap: postgresql: - listen: {{ hostvars[inventory_hostname]['ansible_host'] }},127.0.0.1:{{ patroni_postgresql_port }} + listen: 0.0.0.0:{{ patroni_postgresql_port }} connect_address: {{ hostvars[inventory_hostname]['ansible_host'] }}:{{ patroni_postgresql_port }} use_unix_socket: true data_dir: {{ patroni_postgresql_home_dir }}/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}