20 lines
830 B
Plaintext
Raw Normal View History

2021-12-01 19:13:34 +01:00
{% if pg_version != 'default' %}
[postgresql]
2024-10-11 23:00:27 +02:00
baseurl = https://download.postgresql.org/pub/repos/yum/{{ pg_version }}/redhat/rhel-{{ ansible_distribution_version }}-$basearch
2021-12-01 19:13:34 +01:00
gpgcheck = 1
2024-01-04 17:00:34 +01:00
gpgkey = https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL
2021-12-01 19:13:34 +01:00
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-23 12:00:16 +02:00
exclude = python3-psycopg2
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
2024-01-04 17:00:34 +01:00
gpgkey = https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL
2022-07-07 11:00:17 +02:00
name = PostgreSQL Common
2022-11-03 12:00:10 +01:00
exclude = python3-psycopg2,libpq5
2021-12-01 19:13:34 +01:00
{% endif %}