2021-12-01 19:13:34 +01:00
|
|
|
{% if pg_version != 'default' %}
|
|
|
|
[postgresql]
|
|
|
|
baseurl = https://download.postgresql.org/pub/repos/yum/{{ pg_version }}/redhat/rhel-$releasever-$basearch
|
|
|
|
gpgcheck = 1
|
|
|
|
gpgkey = https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ pg_version }}
|
|
|
|
name = PostgreSQL
|
|
|
|
{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version is version('8', '>=') %}
|
|
|
|
# Workaround a bug in dnf which would make the default module mask packages from postgres repo
|
|
|
|
module_hotfixes = true
|
|
|
|
{% endif %}
|
2022-07-07 11:00:17 +02:00
|
|
|
|
|
|
|
[postgresql-common]
|
|
|
|
baseurl = https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch
|
|
|
|
gpgcheck = 1
|
|
|
|
gpgkey = https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG
|
|
|
|
name = PostgreSQL Common
|
2021-12-01 19:13:34 +01:00
|
|
|
{% endif %}
|