lab-ansible/roles/postgresql/templates/pg_hba.conf.j2
2024-01-09 21:56:17 +01:00

12 lines
623 B
Django/Jinja

{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
# TYPE DATABASE USER ADDRESS METHOD
local all postgres peer
local all all scram-sha-256
host all all 127.0.0.1/32 scram-sha-256
host all all ::1/128 scram-sha-256
{% for db in postgresql_db_list|sort %}
host {{ db.name }} {{ db.vars.username }} {{ internal_subnet }} scram-sha-256
{% endfor %}