File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 8
8
9
9
- name : PostgREST - add Postgres PPA
10
10
apt_repository :
11
- repo : " deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg {{ postgresql_major }} "
11
+ repo : " deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main "
12
12
state : present
13
+ filename : postgresql-pgdg
13
14
14
- - name : PostgREST - update apt cache
15
- apt :
16
- update_cache : yes
17
-
18
- # libpq is a C library that enables user programs to communicate with
19
- # the PostgreSQL database server.
20
- - name : PostgREST - system dependencies
15
+ - name : PostgREST - install system dependencies
21
16
apt :
22
17
pkg :
23
- - " libpq5=15.* "
18
+ - " libpq5> =15"
24
19
- libnuma-dev
20
+ update_cache : yes
21
+ state : present
22
+
23
+ - name : PostgREST - verify libpq5 version
24
+ shell : dpkg -l libpq5 | grep '^ii' | awk '{print $3}' | grep -E '^15'
25
+ register : libpq5_version
26
+ failed_when : libpq5_version.rc != 0
27
+ changed_when : false
25
28
26
29
- name : PostgREST - remove Postgres PPA gpg key
27
30
apt_key :
88
91
#! /usr/bin/env bash
89
92
set -euo pipefail
90
93
set -x
91
-
92
94
cd "$(dirname "$0")"
93
95
cat $@ > merged.conf
94
96
dest : /etc/postgrest/merge.sh
You can’t perform that action at this time.
0 commit comments