From 8e5010fd65641e934c258dace48405640bd1f4c4 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 6 Apr 2021 14:43:49 +0200 Subject: [PATCH] Limit the replica user to the replication db. --- tasks/postgresql-streaming-replication.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/postgresql-streaming-replication.yml b/tasks/postgresql-streaming-replication.yml index 6c8a8f2..eb4b85e 100644 --- a/tasks/postgresql-streaming-replication.yml +++ b/tasks/postgresql-streaming-replication.yml @@ -29,6 +29,7 @@ contype: host users: '{{ psql_streaming_replication_user }}' address: '{{ item }}' + databases: 'replication' #method: 'scram-sha-256' method: 'md5' state: present @@ -45,6 +46,7 @@ contype: host users: '{{ psql_streaming_replication_user }}' address: '{{ item }}' + databases: 'replication' #method: 'scram-sha-256' method: 'md5' state: present