From 05d3828c3999a608df6840afb9bac82c218f94ff Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Wed, 6 Dec 2023 12:11:20 +0100 Subject: [PATCH] Enable support for Postgresql 16 feat: enable using postgresql 16 via this role --- README.md | 4 ++-- tasks/main.yml | 4 ++-- vars/main.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index db3c44c..da75fb9 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The role also optimizes the database server settings to improve performance. ## Requirements -The role currently works with the PostgreSQL server 10, 12, 13, and 15. +The role currently works with the PostgreSQL server 10, 12, 13, 15 and 16. ### Collection requirements @@ -23,7 +23,7 @@ ansible-galaxy collection install -vv -r meta/collection-requirements.yml ### postgresql_verison -You can set the version of the PostgreSQL server to 10, 12, 13, or 15. +You can set the version of the PostgreSQL server to 10, 12, 13, 15 or 16. ```yaml postgresql_version: "13" diff --git a/tasks/main.yml b/tasks/main.yml index 856a216..d254881 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,7 +10,7 @@ - name: Check if requested version is supported in the system (RHEL8) fail: - msg: RHEL 8 supports only Postgresql 10, 12, 13 and 15 + msg: RHEL 8 supports only Postgresql 10, 12, 13, 15 and 16 when: - ansible_facts["os_family"] == "RedHat" - ansible_facts["distribution_major_version"] == "8" @@ -18,7 +18,7 @@ - name: Check if requested version is supported in system (RHEL9) fail: - msg: RHEL 9 supports only Postgresql 13 and 15 + msg: RHEL 9 supports only Postgresql 13, 15 and 16 when: - ansible_facts["os_family"] == "RedHat" - ansible_facts["distribution_major_version"] == "9" diff --git a/vars/main.yml b/vars/main.yml index 17f19ae..1967fd5 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -6,8 +6,8 @@ # Examples of non-distribution specific (generic) internal variables: __postgresql_packages: [postgresql-server] -__postgresql_versions_el8: ["10", "12", "13", "15"] -__postgresql_versions_el9: ["13", "15"] +__postgresql_versions_el8: ["10", "12", "13", "15", "16"] +__postgresql_versions_el9: ["13", "15", "16"] __postgresql_data_dir: /var/lib/pgsql/data