Limit the replica user to the replication db.
This commit is contained in:
parent
ad879841f4
commit
8e5010fd65
|
@ -29,6 +29,7 @@
|
||||||
contype: host
|
contype: host
|
||||||
users: '{{ psql_streaming_replication_user }}'
|
users: '{{ psql_streaming_replication_user }}'
|
||||||
address: '{{ item }}'
|
address: '{{ item }}'
|
||||||
|
databases: 'replication'
|
||||||
#method: 'scram-sha-256'
|
#method: 'scram-sha-256'
|
||||||
method: 'md5'
|
method: 'md5'
|
||||||
state: present
|
state: present
|
||||||
|
@ -45,6 +46,7 @@
|
||||||
contype: host
|
contype: host
|
||||||
users: '{{ psql_streaming_replication_user }}'
|
users: '{{ psql_streaming_replication_user }}'
|
||||||
address: '{{ item }}'
|
address: '{{ item }}'
|
||||||
|
databases: 'replication'
|
||||||
#method: 'scram-sha-256'
|
#method: 'scram-sha-256'
|
||||||
method: 'md5'
|
method: 'md5'
|
||||||
state: present
|
state: present
|
||||||
|
|
Loading…
Reference in New Issue