Use the psql_db_data pgsql_version.

This commit is contained in:
Andrea Dell'Amico 2023-10-26 12:31:20 +02:00
parent 16fc7fdfd3
commit 68f5ced075
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}'