# {{ ansible_managed }}
local    all    all        peer
host    all    all    127.0.0.1/32    md5
host    all    all    ::1/128    md5
{% if pg_ldap_auth %}
{{ pg_ldap_conn_type }}    all    {{ pg_ldap_roles }}    0.0.0.0/0    ldap ldapserver="{{ pg_ldap_host }}" ldapport={{ pg_ldap_port }} ldaptls={{ pg_ldap_starttls | ternary('1', '0') }} ldapbasedn="{{ pg_ldap_basedn }}" ldapbinddn="{{ pg_ldap_binddn }}" ldapbindpasswd="{{ pg_ldap_bindpasswd }}" ldapsearchfilter="{{ pg_ldap_searchfilter }}"
{% endif %}
host    all    all    0.0.0.0/0    md5
