diff --git a/vars/main.yml b/vars/main.yml index 0750a62d8..0e150e6da 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -275,7 +275,7 @@ postgresql_pg_hba: - { type: "local", database: "all", user: "{{ patroni_superuser_username }}", address: "", method: "trust" } - { type: "local", database: "all", user: "{{ pgbouncer_auth_username }}", address: "", method: "trust" } # required for pgbouncer auth_user - { type: "local", database: "replication", user: "{{ patroni_superuser_username }}", address: "", method: "trust" } - - { type: "local", database: "all", user: "all", address: "", method: "peer" } + - { type: "local", database: "all", user: "all", address: "", method: "{{ postgresql_password_encryption_algorithm }}" } - { type: "host", database: "all", user: "all", address: "127.0.0.1/32", method: "{{ postgresql_password_encryption_algorithm }}" } - { type: "host", database: "all", user: "all", address: "::1/128", method: "{{ postgresql_password_encryption_algorithm }}" } # - { type: "host", database: "mydatabase", user: "mydb-user", address: "192.168.0.0/24", method: "{{ postgresql_password_encryption_algorithm }}" }