mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
20 lines
807 B
Django/Jinja
20 lines
807 B
Django/Jinja
{% 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/keys/PGDG-RPM-GPG-KEY-RHEL
|
|
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 %}
|
|
exclude = python3-psycopg2
|
|
|
|
[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/keys/PGDG-RPM-GPG-KEY-RHEL
|
|
name = PostgreSQL Common
|
|
exclude = python3-psycopg2,libpq5
|
|
{% endif %}
|