From 9d1baf884ca6f5d6a47747630ca79d0b7cd2864d Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 14 Apr 2021 21:04:55 +0200 Subject: [PATCH] add postgres listening --- defaults/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index d70c8fa..ea08ec0 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -20,6 +20,8 @@ postgresql_service_enabled: true postgresql_global_config_options: - option: unix_socket_directories value: '{{ postgresql_unix_socket_directories | join(",") }}' + - option: listen_addresses + value: '*' # Host based authentication (hba) entries to be added to the pg_hba.conf. This # variable's defaults reflect the defaults that come with a fresh installation. @@ -28,6 +30,8 @@ postgresql_hba_entries: - {type: local, database: all, user: all, auth_method: peer} - {type: host, database: all, user: all, address: '127.0.0.1/32', auth_method: md5} - {type: host, database: all, user: all, address: '::1/128', auth_method: md5} + - {type: host, database: all, user: all, address: '::0/128', auth_method: md5} + - {type: host, database: all, user: all, address: '0.0.0.0/0', auth_method: md5} # Debian only. Used to generate the locales used by PostgreSQL databases. postgresql_locales: