diff --git a/tasks/configure-access.yml b/tasks/configure-access.yml index 45c7db3..fc8d394 100644 --- a/tasks/configure-access.yml +++ b/tasks/configure-access.yml @@ -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'