Skip to content

Commit 9425bbe

Browse files
committed
Adapted for usegalaxy.eu:
- Install v13 by default - Disable repo 'AppStream' during pkg install on RH-8
1 parent fc1e5c2 commit 9425bbe

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
postgresql_default_version: 10
3+
postgresql_default_version: 13
44
postgresql_backup_local_dir: ~postgres/backup
55
postgresql_backup_active_dir: "{{ postgresql_backup_local_dir }}/active"
66
postgresql_backup_mail_recipient: postgres

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
galaxy_info:
3-
author: The Galaxy Project
3+
author: The Galaxy Project; (w/ customizations for usegalaxy.eu)
44
description: Install and manage a PostgreSQL (http://www.postgresql.org/) server.
55
company: The Galaxy Project
66
license: AFL v3.0

tasks/redhat.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,18 @@
4242
# # here but alas there is no `startswith` test
4343
# loop: "{{ __postgresql_yum_repolist_result.results }}"
4444

45-
- name: Install PostgreSQL (RedHat)
45+
46+
- name: Install PostgreSQL (RedHat < 8)
47+
yum:
48+
name: postgresql{{ __postgresql_version_dotless }}-server
49+
when: ansible_distribution_major_version is version(8, '<')
50+
51+
# on RH-8 for installing the pgdg-version, the Appstream-repo must be disabled
52+
- name: Install PostgreSQL (RedHat >= 8)
4653
yum:
4754
name: postgresql{{ __postgresql_version_dotless }}-server
55+
disablerepo: AppStream
56+
when: ansible_distribution_major_version is version(8, '>=')
4857

4958
- name: Check for pgdata directory
5059
stat:

0 commit comments

Comments
 (0)