add CentOS-8/RedHat-8 support

This commit is contained in:
Stefan Jakobs 2019-11-27 11:42:05 +01:00
parent 2c3ab60a9b
commit 4898e2b994
2 changed files with 14 additions and 3 deletions

View File

@ -11,15 +11,15 @@
pre_tasks:
# The Fedora 30+ container images have only C.UTF-8 installed
- name: Set database locale if using Fedora 30+
- name: Set database locale if using Fedora 30+ or RedHat 8+
set_fact:
postgresql_databases:
- name: example
lc_collate: 'C.UTF-8'
lc_ctype: 'C.UTF-8'
when:
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version >= '30'
- ( ansible_distribution == 'Fedora' and ansible_distribution_major_version >= '30') or
( ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8')
- name: Update apt cache.
apt: update_cache=true cache_valid_time=600

11
vars/RedHat-8.yml Normal file
View File

@ -0,0 +1,11 @@
---
__postgresql_version: "10"
__postgresql_data_dir: "/var/lib/pgsql/data"
__postgresql_bin_path: "/usr/bin"
__postgresql_config_path: "/var/lib/pgsql/data"
__postgresql_daemon: postgresql
__postgresql_packages:
- postgresql
- postgresql-server
- postgresql-contrib
postgresql_python_library: python3-psycopg2