Skip to content

Commit 36ff81c

Browse files
authored
chore: Update PostgREST setup and versions (#1955)
- Refactored PostgREST APT GPG key management to use `get_url` and `file` as `apt_key` is deprecated - Updated PostgreSQL release versions to include the `-PSQL838` suffix, indicating specific builds for this project.
1 parent 06360ae commit 36ff81c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ansible/tasks/setup-postgrest.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
state: 'present'
55

66
- name: PostgREST - add Postgres PPA gpg key
7-
ansible.builtin.apt_key:
7+
ansible.builtin.get_url:
8+
dest: /etc/apt/trusted.gpg.d/ppdg.asc
9+
force: true
10+
mode: '0644'
811
url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
9-
state: 'present'
1012

1113
- name: PostgREST - add Postgres PPA main
1214
ansible.builtin.apt_repository:
@@ -30,9 +32,9 @@
3032
msg: "Installed libpq5 version: {{ ansible_facts['packages']['libpq5'][0]['version'] }}"
3133

3234
- name: PostgREST - remove Postgres PPA gpg key
33-
ansible.builtin.apt_key:
35+
ansible.builtin.file:
36+
path: /etc/apt/trusted.gpg.d/ppdg.asc
3437
state: 'absent'
35-
url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
3638

3739
- name: PostgREST - remove Postgres PPA
3840
ansible.builtin.apt_repository:

0 commit comments

Comments
 (0)