File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ - name : pljava - libjvm.so location in postgresql.conf
2
+ become : yes
3
+ lineinfile :
4
+ path : /etc/postgresql/postgresql.conf
5
+ state : present
6
+ line : pljava.libjvm_location = '/home/postgres/.nix-profile/lib/openjdk/lib/server/libjvm.so'
7
+
1
8
- name : pg_cron - set cron.database_name
2
9
become : yes
3
10
lineinfile :
Original file line number Diff line number Diff line change
1
+ - name : Install openjdk11 for pljava from nix binary cache
2
+ become : yes
3
+ shell : |
4
+ sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install nixpkgs#openjdk11"
5
+
1
6
- name : Install Postgres from nix binary cache
2
7
become : yes
3
8
shell : |
84
89
with_fileglob :
85
90
- " /home/postgres/.nix-profile/bin/*"
86
91
become : yes
92
+ sudo ln -s /home/postgres/.nix-profile/share/pljava /usr/lib/postgresql/share/postgresql/pljava
93
+ - name : Create symbolic links from /home/postgres/.nix-profile/bin to /usr/bin
94
+ file :
95
+ src : " /home/postgres/.nix-profile/bin/psql"
96
+ dest : " /usr/bin/psql"
97
+ state : link
98
+ become : yes
87
99
100
+ - name : Create symbolic links from /home/postgres/.nix-profile/share/pljava to /usr/lib/postgresql/share/postgresql/pljava
101
+ file :
102
+ src : " {{ item }}"
103
+ dest : " /usr/lib/postgresql/share/postgresql/pljava/{{ item | basename }}"
104
+ state : link
105
+ with_fileglob :
106
+ - " /home/postgres/.nix-profile/share/pljava/*"
107
+ become : yes
108
+
88
109
- name : Create symbolic links from /home/postgres/.nix-profile/bin to /usr/bin
89
110
file :
90
111
src : " /home/postgres/.nix-profile/bin/psql"
Original file line number Diff line number Diff line change 1
- postgres-version = " 15.6.1.60 -nix-staged"
1
+ postgres-version = " 15.6.1.61 -nix-staged"
You can’t perform that action at this time.
0 commit comments