Skip to content

Commit 678ec55

Browse files
committed
chore: run apt-update before ppa install
1 parent 4cd9d60 commit 678ec55

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ansible/tasks/setup-postgrest.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
repo: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }}"
1212
state: present
1313

14+
- name: PostgREST - update apt cache
15+
apt:
16+
update_cache: yes
17+
1418
# libpq is a C library that enables user programs to communicate with
1519
# the PostgreSQL database server.
1620
- name: PostgREST - system dependencies
@@ -19,6 +23,11 @@
1923
- libpq5
2024
- libnuma-dev
2125

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+
2231
- name: PostgREST - remove Postgres PPA
2332
apt_repository:
2433
repo: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }}"

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-libpq"
1+
postgres-version = "15.6.1.111-libpq-v2"

0 commit comments

Comments
 (0)