Use the psql_db_data pgsql_version.
This commit is contained in:
parent
16fc7fdfd3
commit
68f5ced075
|
@ -6,7 +6,7 @@
|
||||||
block:
|
block:
|
||||||
- name: configure-access | Give access to the remote postgresql client
|
- name: configure-access | Give access to the remote postgresql client
|
||||||
community.postgresql.postgresql_pg_hba:
|
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 %}'
|
contype: '{% if psql_force_ssl_client_connection %}hostssl{% else %}host{% endif %}'
|
||||||
users: '{{ item.0.user }}'
|
users: '{{ item.0.user }}'
|
||||||
address: '{{ item.1 }}'
|
address: '{{ item.1 }}'
|
||||||
|
|
Loading…
Reference in New Issue