Skip to content

Commit 4cd9d60

Browse files
committed
chore: add postgres PPA key
1 parent 2dce973 commit 4cd9d60

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

ansible/tasks/setup-postgrest.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
- name: PostgREST - system user
22
user: name=postgrest
33

4-
- name: Postgres - add PPA
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
510
apt_repository:
6-
repo: "http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }}"
11+
repo: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }}"
712
state: present
813

914
# libpq is a C library that enables user programs to communicate with
@@ -14,9 +19,9 @@
1419
- libpq5
1520
- libnuma-dev
1621

17-
- name: Postgres - remove PPA
22+
- name: PostgREST - remove Postgres PPA
1823
apt_repository:
19-
repo: "http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }}"
24+
repo: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }}"
2025
state: absent
2126

2227
- name: postgis - ensure dependencies do not get autoremoved

0 commit comments

Comments
 (0)