From 68f5ced075ebcea3bb12b775b47e014be47cede9 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 26 Oct 2023 12:31:20 +0200 Subject: [PATCH] Use the psql_db_data pgsql_version. --- tasks/configure-access.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure-access.yml b/tasks/configure-access.yml index 0c78cc3..650db10 100644 --- a/tasks/configure-access.yml +++ b/tasks/configure-access.yml @@ -6,7 +6,7 @@ block: - name: configure-access | Give access to the remote postgresql client community.postgresql.postgresql_pg_hba: - dest: '{{ psql_conf_dir }}/pg_hba.conf' + dest: "{{ psql_conf_base_dir }}/{{ item.pgsql_version | default('psql_version') }}/main/pg_hba.conf" contype: '{% if psql_force_ssl_client_connection %}hostssl{% else %}host{% endif %}' users: '{{ item.0.user }}' address: '{{ item.1 }}'