Peer access from local to all databases on EL based distributions.

This commit is contained in:
Andrea Dell'Amico 2026-04-08 19:37:37 +02:00
parent 0020074eaa
commit 327cafe007
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 12 additions and 1 deletions

View File

@ -91,7 +91,18 @@
group: postgres
mode: "0640"
notify: Reload postgresql
- name: configure-access | Remove the ident authentication for the local connections
community.postgresql.postgresql_pg_hba:
dest: '{{ psql_el_conf_dir }}/pg_hba.conf'
contype: 'local'
users: 'all'
databases: 'all'
method: 'peer'
state: present
owner: root
group: postgres
mode: "0640"
notify: Reload postgresql
- name: configure-access | Give local access with replication privileges to the postgres user
community.postgresql.postgresql_pg_hba:
dest: '{{ psql_conf_dir }}/pg_hba.conf'