ansible-role-postgresql/templates/pg_hba.conf.j2
2023-01-19 15:11:35 +01:00

14 lines
401 B
Django/Jinja

# {{ ansible_managed }}
# local access
local all postgres peer
local all all peer
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
{% for rulename in postgresql.allowed_hosts %}
{% set item = default_allowed_hosts|combine(postgresql.allowed_hosts[rulename]) %}
# Rule "{{ rulename }}"
{{ item.type }} {{ item.database }} {{ item.user }} {{ item.source_net }} {{ item.auth }}
{% endfor %}