Merge pull request #108 from anxstj/centos8_support
add CentOS-8/RedHat-8 support
This commit is contained in:
commit
1213d0bbe6
|
@ -7,6 +7,7 @@ env:
|
|||
- ROLE_NAME: postgresql
|
||||
matrix:
|
||||
- MOLECULE_DISTRO: centos7
|
||||
- MOLECULE_DISTRO: centos8
|
||||
- MOLECULE_DISTRO: fedora31
|
||||
- MOLECULE_DISTRO: ubuntu1804
|
||||
- MOLECULE_DISTRO: debian10
|
||||
|
|
|
@ -12,6 +12,7 @@ galaxy_info:
|
|||
versions:
|
||||
- 6
|
||||
- 7
|
||||
- 8
|
||||
- name: Fedora
|
||||
versions:
|
||||
- 29
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue