{{ 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 %}