xoxys.postgres/tasks/prepare.yml
Robert Kaussow 7a3752d57b
Some checks failed
continuous-integration/drone/pr Build is failing
switch to postgres 14 as default
2022-04-03 14:53:03 +02:00

11 lines
524 B
YAML

---
- name: Add PostgreSQL repository
yum_repository:
name: "postgresql-{{ __postgres_version }}"
file: "{{ postgres_repository_filename }}"
description: "PostgreSQL {{ __postgres_version }} yum repository"
baseurl: "https://download.postgresql.org/pub/repos/yum/{{ __postgres_version }}/redhat/rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}"
gpgcheck: yes
enabled: yes
gpgkey: "https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ __postgres_version }}"