add postgres listening

This commit is contained in:
vincent 2021-04-14 21:04:55 +02:00
parent ddcb35ec31
commit 9d1baf884c

View File

@ -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: