Skip to content

Commit fabd8e2

Browse files
authored
chore: install latest libpq for pg15 (#1122)
1 parent bfe5f7b commit fabd8e2

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

ansible/tasks/setup-postgrest.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
- name: PostgREST - system user
22
user: name=postgrest
33

4+
- name: PostgREST - add Postgres PPA gpg key
5+
apt_key:
6+
url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
7+
state: present
8+
9+
- name: PostgREST - add Postgres PPA
10+
apt_repository:
11+
repo: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }}"
12+
state: present
13+
14+
- name: PostgREST - update apt cache
15+
apt:
16+
update_cache: yes
17+
418
# libpq is a C library that enables user programs to communicate with
519
# the PostgreSQL database server.
620
- name: PostgREST - system dependencies
@@ -9,6 +23,16 @@
923
- libpq5
1024
- libnuma-dev
1125

26+
- name: PostgREST - remove Postgres PPA gpg key
27+
apt_key:
28+
url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
29+
state: absent
30+
31+
- name: PostgREST - remove Postgres PPA
32+
apt_repository:
33+
repo: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }}"
34+
state: absent
35+
1236
- name: postgis - ensure dependencies do not get autoremoved
1337
shell: |
1438
set -e

common-nix.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.6.1.111"
1+
postgres-version = "15.6.1.112"

0 commit comments

Comments
 (0)