# {{ ansible_managed }} local all postgres peer {% for conn in postgresql_hba %} {{ conn.type }} {% if conn.databases == 'all' %}all{% else %}"{{ conn.databases|join('",') }}"{% endif %} {% if conn.users == 'all' %}all{% else %}"{{ conn.users|join('",') }}"{% endif %}{% if conn.type != 'local' %} {{ conn.subnet }}{%endif %} {{ conn.method }} {% endfor %}