Merge pull request #108 from anxstj/centos8_support

add CentOS-8/RedHat-8 support
This commit is contained in:
Jeff Geerling 2020-03-05 07:57:54 -06:00 committed by GitHub
commit 1213d0bbe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 3 deletions

View File

@ -7,6 +7,7 @@ env:
- ROLE_NAME: postgresql
matrix:
- MOLECULE_DISTRO: centos7
- MOLECULE_DISTRO: centos8
- MOLECULE_DISTRO: fedora31
- MOLECULE_DISTRO: ubuntu1804
- MOLECULE_DISTRO: debian10

View File

@ -12,6 +12,7 @@ galaxy_info:
versions:
- 6
- 7
- 8
- name: Fedora
versions:
- 29

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

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

@ -0,0 +1,12 @@
---
__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_unix_socket_directories_mode: '0755'
postgresql_python_library: python3-psycopg2