8000 fix: insert pgbouncer pg_hba entries before any other rules (#686) · openmodels-base/postgres@794bc24 · GitHub
[go: up one dir, main page]

Skip to content

Commit 794bc24

Browse files
authored
fix: insert pgbouncer pg_hba entries before any other rules (supabase#686)
1 parent 7a25f09 commit 794bc24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/tasks/setup-pgbouncer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@
103103
lineinfile:
104104
path: /etc/postgresql/pg_hba.conf
105105
state: present
106-
insertafter: '# Default:'
106+
insertafter: '^# TYPE'
107107
line: "{{ item }}"
108108
with_items:
109+
- "# Connection configuration for pgbouncer user"
109110
- "host all pgbouncer 0.0.0.0/0 reject"
110111
- "host all pgbouncer 127.0.0.1/32 scram-sha-256"
111-
- "# Connection configuration for pgbouncer user"
112112

113113
- name: PgBouncer - By default allow ssl connections.
114114
become: yes

0 commit comments

Comments
 (0)
0