diff --git a/templates/pgbouncer.ini.j2 b/templates/pgbouncer.ini.j2 index 132b5b4..e7249b8 100644 --- a/templates/pgbouncer.ini.j2 +++ b/templates/pgbouncer.ini.j2 @@ -18,8 +18,8 @@ server_tls_sslmode = {{ pgbouncer_server_tls_sslmode }} {% endif %} logfile = {{ pgbouncer_log_dir }}/{{ pgbouncer_log_name }} pidfile = {{ pgbouncer_pid_dir }}/{{ pgbouncer_pid_name }} -listen_addr = {{ hostvars[inventory_hostname]['inventory_hostname'] }} -listen_port = {{ pgbouncer_listen_port | default(6432) }} +listen_addr = {{ pgbouncer_listen_addr | default('0.0.0.0') }} +listen_port = {{ pgbouncer_listen_port | default('6432') }} unix_socket_dir = /var/run/postgresql auth_type = {{ pgbouncer_auth_type }} auth_file = {{ pgbouncer_auth_file }}