Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
# Version of postgres to install. 'default' means takes the one from the standard repo
# If a version is specified (like 10, 11, 12, 13 etc.), upstream repository will be configured
pg_version: default

View File

@@ -0,0 +1,8 @@
---
# Here we use a template instead of yum_repository because
# we might need to set module_hotfixes = true for el8. And yum_repository
# doesn't support this setting
- name: Configure Postgres repo
template: src=postgresql.repo.j2 dest=/etc/yum.repos.d/postgresql.repo
tags: pg,repo

View File

@@ -0,0 +1,11 @@
{% 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 %}
{% endif %}