{% set pg_servers = stage_server_infos | selectattr('service', 'equalto', 'postgres') | selectattr('role', 'equalto', 'master') | list %}
{% for server in pg_servers %}
{{ server.name }}:5432:*:{{ postgres_admin_user }}:{{ postgres_admin_password }}
{% endfor %}