Fix #551 regression on old pg

Fix #551 regression on old pg

diff --git a/templates/postgres.10.template.yml b/templates/postgres.10.template.yml
index 2c729bd..358d641 100644
--- a/templates/postgres.10.template.yml
+++ b/templates/postgres.10.template.yml
@@ -120,7 +120,7 @@ run:
 
   # allow all to connect in with md5 auth (IPv6)
   - replace:
-      filename: "/etc/postgresql/13/main/pg_hba.conf"
+      filename: "/etc/postgresql/10/main/pg_hba.conf"
       from: /^host.*all.*all.*::1\/128.*$/
       to: "host all all ::/0 md5"
 
diff --git a/templates/postgres.12.template.yml b/templates/postgres.12.template.yml
index 4bd8461..da9abf3 100644
--- a/templates/postgres.12.template.yml
+++ b/templates/postgres.12.template.yml
@@ -119,7 +119,7 @@ run:
 
   # allow all to connect in with md5 auth (IPv6)
   - replace:
-      filename: "/etc/postgresql/13/main/pg_hba.conf"
+      filename: "/etc/postgresql/12/main/pg_hba.conf"
       from: /^host.*all.*all.*::1\/128.*$/
       to: "host all all ::/0 md5"
 
diff --git a/templates/postgres.9.5.template.yml b/templates/postgres.9.5.template.yml
index 7518430..9d62713 100644
--- a/templates/postgres.9.5.template.yml
+++ b/templates/postgres.9.5.template.yml
@@ -120,7 +120,7 @@ run:
 
   # allow all to connect in with md5 auth (IPv6)
   - replace:
-      filename: "/etc/postgresql/13/main/pg_hba.conf"
+      filename: "/etc/postgresql/9.5/main/pg_hba.conf"
       from: /^host.*all.*all.*::1\/128.*$/
       to: "host all all ::/0 md5"
 

GitHub sha: 45b4e7c35a371951484cd5e27a1c9db3f96af9e1

This commit appears in #566 which was approved by romanrizzi. It was merged by Falco.