From ad879841f4fa1cc0e1a626a01bae5d894ada63c8 Mon Sep 17 00:00:00 2001
From: Andrea Dell'Amico <adellam@isti.cnr.it>
Date: Tue, 6 Apr 2021 14:35:54 +0200
Subject: [PATCH] Passwords are still md5.

---
 tasks/postgresql-streaming-replication.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tasks/postgresql-streaming-replication.yml b/tasks/postgresql-streaming-replication.yml
index 4c91dec..6c8a8f2 100644
--- a/tasks/postgresql-streaming-replication.yml
+++ b/tasks/postgresql-streaming-replication.yml
@@ -29,7 +29,8 @@
       contype: host
       users: '{{ psql_streaming_replication_user }}'
       address: '{{ item }}'
-      method: 'scram-sha-256'
+      #method: 'scram-sha-256'
+      method: 'md5'
       state: present
     loop: '{{ psql_streaming_replication_hosts }}'
     notify: Reload postgresql
@@ -44,7 +45,8 @@
       contype: host
       users: '{{ psql_streaming_replication_user }}'
       address: '{{ item }}'
-      method: 'scram-sha-256'
+      #method: 'scram-sha-256'
+      method: 'md5'
       state: present
     loop: '{{ psql_streaming_replication_hosts }}'
     notify: Reload postgresql