psql_version is a variable and not a string.

This commit is contained in:
Andrea Dell'Amico 2023-10-26 12:50:47 +02:00
parent 68f5ced075
commit d14fd11cdb
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_base_dir }}/{{ item.pgsql_version | default('psql_version') }}/main/pg_hba.conf"
dest: "{{ psql_conf_base_dir }}/{{ item.0.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 }}'