File tree 3 files changed +18
-9
lines changed
3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ log_disconnections: "on"
21
21
log_duration : " on"
22
22
log_hostname : " on"
23
23
log_directory : pg_log
24
- log_line_prefix : " %t %u %d %h"
24
+ log_line_prefix : " %t %u %d %h"
Original file line number Diff line number Diff line change 87
87
group : " {{ postgres_group }}"
88
88
mode : u=rw,g=r,o=
89
89
90
- - name : Manage permissions on /etc/postgresql/<version>/main/pg_hba.conf
91
- ansible.builtin.file :
92
- path : " /etc/postgresql/{{ postgres_version }}/main/pg_hba.conf"
93
- state : file
94
- owner : " {{ postgres_user }}"
95
- group : " {{ postgres_group }}"
96
- mode : u=rw,g=,o=
97
-
98
90
# ################################
99
91
# POSTGRES-11/12/16 #############
100
92
# ################################
125
117
regexp : " #?log_line_prefix\\ s?="
126
118
notify : Restart postgres
127
119
120
+ # ################################
121
+ # POSTGRES-13/14/15 #############
122
+ # ################################
123
+ - name : Secure pg_hba.conf Configuration
124
+ ansible.builtin.template :
125
+ src : templates/pg_hba.conf
126
+ dest : /etc/postgresql/{{ postgres_version }}/main/pg_hba.conf
127
+ owner : " {{ postgres_user }}"
128
+ group : " {{ postgres_group }}"
129
+ mode : u=rw,g=,o=
130
+ notify : Restart postgres
131
+
128
132
# ################################
129
133
# POSTGRES-20 ###################
130
134
# ################################
Original file line number Diff line number Diff line change
1
+ local all postgres peer
2
+ local all all peer
3
+ hostssl all all 127.0.0.1/32 scram-sha-256
4
+ hostssl all all ::1/128 scram-sha-256
5
+ local replication all peer
You can’t perform that action at this time.
0 commit comments