Commit f12ad8c2 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

postgres: Optionally include pgdg apt repo

parent 3184eeff
Pipeline #2186 passed with stage
in 36 seconds
---
postgres_pgdg_repo: false
---
- 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment