File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,13 @@ postgres_group: postgres
12
12
13
13
# SSL
14
14
ssl_enabled : " on"
15
- ssl_ciphers : ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH
15
+ ssl_ciphers : ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH
16
+
17
+ # Logging
18
+ logging_collector : " on"
19
+ log_connections : " on"
20
+ log_disconnections : " on"
21
+ log_duration : " on"
22
+ log_hostname : " on"
23
+ log_directory : pg_log
24
+ log_line_prefix : " %t %u %d %h"
Original file line number Diff line number Diff line change 96
96
mode : u=rw,g=,o=
97
97
98
98
# ################################
99
- # POSTGRES-11/12 ### #############
99
+ # POSTGRES-11/12/16 #############
100
100
# ################################
101
101
- name : Secure postgresql.conf Configuration
102
102
ansible.builtin.lineinfile :
106
106
state : present
107
107
with_items :
108
108
- line : " ssl = {{ ssl_enabled }}"
109
- regexp : " #?ssl\\ s?="
109
+ regexp : " #?ssl\\ s?="
110
110
- line : " ssl_ciphers = '{{ ssl_ciphers }}'"
111
111
regexp : " #?ssl_ciphers\\ s?="
112
+ - line : " logging_collector = {{ logging_collector }}"
113
+ regexp : " #?logging_collector\\ s?="
114
+ - line : " log_connections = {{ log_connections }}"
115
+ regexp : " #?log_connections\\ s?="
116
+ - line : " log_disconnections = {{ log_disconnections }}"
117
+ regexp : " #?log_disconnections\\ s?="
118
+ - line : " log_duration = {{ log_duration }}"
119
+ regexp : " #?log_duration\\ s?="
120
+ - line : " log_hostname = {{ log_hostname }}"
121
+ regexp : " #?log_hostname\\ s?="
122
+ - line : " log_directory = '{{ log_directory }}'"
123
+ regexp : " #?log_directory\\ s?="
124
+ - line : " log_line_prefix = '{{ log_line_prefix }}'"
125
+ regexp : " #?log_line_prefix\\ s?="
112
126
notify : Restart postgres
You can’t perform that action at this time.
0 commit comments