fix: replication database in pg_hba

This commit is contained in:
Adrien Waksberg 2021-10-14 16:36:25 +02:00
parent b7d50a9c43
commit 77fd0e5954
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
---
galaxy_info:
role_name: postgresql
namespace: mylegitech
author: Adrien Waksberg
company: Adrien Waksberg
description: Install and configure postgresql

View file

@ -2,5 +2,5 @@
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 }}
{{ conn.type }} {% if conn.databases in ['all', 'replication'] %}{{ conn.databases }}{% 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 %}