fix: review postgres on multiple iface

This commit is contained in:
Clément Désiles
2025-11-11 11:11:47 +01:00
parent e692d4df98
commit 9f3e920d7d
5 changed files with 52 additions and 38 deletions
+7 -7
View File
@@ -48,13 +48,13 @@
mode: "0640"
notify: Restart PostgreSQL
- name: Configure pg_hba.conf for Podman subnet access
ansible.builtin.lineinfile:
path: "{{ postgres_hba_path }}"
line: "host all all {{ podman_subnet }} scram-sha-256"
insertafter: "^# IPv4 local connections:"
state: present
when: podman_subnet is defined
- name: Deploy pg_hba.conf from template
ansible.builtin.template:
src: pg_hba.conf.j2
dest: "{{ postgres_hba_path }}"
owner: postgres
group: postgres
mode: "0640"
notify: Restart PostgreSQL
- name: Setup firewall rules for PostgreSQL