ansible/roles/postgresql_server/templates/postgresql/pg_hba.conf.j2

7 lines
315 B
Django/Jinja

{{ ansible_managed | comment }}
# TYPE DATABASE USER ADDRESS METHOD
local all postgres peer map=map_local
{% for host in postgresql_hosts %}
host "{{ host.database }}" "{{ host.user }}" {{ host.net }} {{ host.method }}
{% endfor %}