Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
databases
Commits
f12ad8c2
Commit
f12ad8c2
authored
Jun 13, 2020
by
Thomas Schneider
Browse files
postgres: Optionally include pgdg apt repo
parent
3184eeff
Pipeline
#2186
passed with stage
in 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
postgres/defaults/main.yml
0 → 100644
View file @
f12ad8c2
---
postgres_pgdg_repo
:
false
postgres/tasks/main.yml
View file @
f12ad8c2
---
-
when
:
postgres_pgdg_repo
block
:
-
name
:
Install pgdg apt repo key
apt_key
:
url
:
https://www.postgresql.org/media/keys/ACCC4CF8.asc
state
:
present
-
name
:
Configure pgdg apt repo
apt_repository
:
repo
:
>-
deb
https://apt.postgresql.org/pub/repos/apt
{{ ansible_distribution_release }}-pgdg
main
-
name
:
ensure postgres packages are installed
apt
:
name
:
# yamllint disable-line rule:line-length
-
postgresql{{ "-{}".format(postgres_version) if postgres_version is defined }}
-
python-psycopg2
-
python3-psycopg2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment