File tree 5 files changed +49
-15
lines changed
5 files changed +49
-15
lines changed Original file line number Diff line number Diff line change 3
3
src : files/extensions/
4
4
dest : /tmp/extensions/
5
5
6
+ # Builtin apt module does not support wildcard for deb paths
6
7
- name : Install extensions
7
- apt :
8
- deb : " /tmp/extensions/{{ item | basename }}"
9
- with_fileglob : " files/extensions/*.deb"
8
+ shell : apt-get install -y --no-install-recommends /tmp/extensions/*.deb
10
9
11
10
- name : pg_cron - set cron.database_name
12
11
become : yes
36
35
state : present
37
36
line : auto_explain.log_min_duration = 10s
38
37
38
+ # supautils
39
+ - name : supautils - add supautils to session_preload_libraries
40
+ become : yes
41
+ replace :
42
+ path : /etc/postgresql/postgresql.conf
43
+ regexp : " #session_preload_libraries = ''"
44
+ replace : session_preload_libraries = 'supautils'
45
+
46
+ - name : supautils - write custom supautils.conf
47
+ template :
48
+ src : " files/postgresql_config/supautils.conf.j2"
49
+ dest : /etc/postgresql-custom/supautils.conf
50
+ mode : 0664
51
+ owner : postgres
52
+ group : postgres
53
+
54
+ - name : supautils - copy extension custom scripts
55
+ copy :
56
+ src : files/postgresql_extension_custom_scripts/
57
+ dest : /etc/postgresql-custom/extension-custom-scripts
58
+ become : yes
59
+
60
+ - name : supautils - chown extension custom scripts
61
+ file :
62
+ mode : 0775
63
+ owner : postgres
64
+ group : postgres
65
+ path : /etc/postgresql-custom/extension-custom-scripts
66
+ recurse : yes
67
+ become : yes
68
+
69
+ - name : supautils - include /etc/postgresql-custom/supautils.conf in postgresql.conf
70
+ become : yes
71
+ replace :
72
+ path : /etc/postgresql/postgresql.conf
73
+ regexp : " #include = '/etc/postgresql-custom/supautils.conf'"
74
+ replace : " include = '/etc/postgresql-custom/supautils.conf'"
75
+
39
76
- name : Cleanup - extension packages
40
77
file :
41
78
path : /tmp/extensions
Original file line number Diff line number Diff line change 80
80
- name : Install Postgres exporter
81
81
import_tasks : internal/postgres-exporter.yml
82
82
83
- - name : Install supautils
84
- import_tasks : internal/supautils.yml
85
-
86
83
- name : Install admin-mgr
87
84
import_tasks : internal/admin-mgr.yml
88
85
Original file line number Diff line number Diff line change 32
32
update-alternatives --set ebtables /usr/sbin/ebtables-nft
33
33
systemctl restart ufw
34
34
35
+ - name : Install other useful tools
36
+ apt :
37
+ pkg :
38
+ - sysstat
39
+ update_cache : yes
40
+
35
41
- name : Configure sysstat
36
42
copy :
37
43
src : files/sysstat.sysstat
46
52
file :
47
53
path : /var/log/sysstat
48
54
state : directory
49
-
50
- - name : Install other useful tools
51
- apt :
52
- pkg :
53
- - sysstat
54
- update_cache : yes
55
55
56
56
- name : Adjust APT update intervals
57
57
copy :
Original file line number Diff line number Diff line change 1
- postgres-version = " 15.1.0.85 "
1
+ postgres-version = " 15.1.0.86-rc0 "
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ function cleanup_cache {
223
223
224
224
update_install_packages
225
225
setup_locale
226
- install_packages_for_build
226
+ # install_packages_for_build
227
227
install_configure_grub
228
228
setup_apparmor
229
229
setup_hostname
@@ -233,5 +233,5 @@ setup_eth0_interface
233
233
disable_ufw_ipv6
234
234
disable_sshd_passwd_auth
235
235
disable_fsck
236
- setup_ccache
236
+ # setup_ccache
237
237
cleanup_cache
You can’t perform that action at this time.
0 commit comments