Skip to content

Commit 07a2988

Browse files
fila43richm
authored andcommitted
Enable support for Postgresql 16
feat: enable using postgresql 16 via this role
1 parent 487565e commit 07a2988

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The role also optimizes the database server settings to improve performance.
99

1010
## Requirements
1111

12-
The role currently works with the PostgreSQL server 10, 12, 13, and 15.
12+
The role currently works with the PostgreSQL server 10, 12, 13, 15 and 16.
1313

1414
### Collection requirements
1515

@@ -23,7 +23,7 @@ ansible-galaxy collection install -vv -r meta/collection-requirements.yml
2323

2424
### postgresql_verison
2525

26-
You can set the version of the PostgreSQL server to 10, 12, 13, or 15.
26+
You can set the version of the PostgreSQL server to 10, 12, 13, 15 or 16.
2727

2828
```yaml
2929
postgresql_version: "13"

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
- name: Check if requested version is supported in the system (RHEL8)
1212
fail:
13-
msg: RHEL 8 supports only Postgresql 10, 12, 13 and 15
13+
msg: RHEL 8 supports only Postgresql 10, 12, 13, 15 and 16
1414
when:
1515
- ansible_facts["os_family"] == "RedHat"
1616
- ansible_facts["distribution_major_version"] == "8"
1717
- postgresql_version | string not in __postgresql_versions_el8
1818

1919
- name: Check if requested version is supported in system (RHEL9)
2020
fail:
21-
msg: RHEL 9 supports only Postgresql 13 and 15
21+
msg: RHEL 9 supports only Postgresql 13, 15 and 16
2222
when:
2323
- ansible_facts["os_family"] == "RedHat"
2424
- ansible_facts["distribution_major_version"] == "9"

vars/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
# Examples of non-distribution specific (generic) internal variables:
88
__postgresql_packages: [postgresql-server]
9-
__postgresql_versions_el8: ["10", "12", "13", "15"]
10-
__postgresql_versions_el9: ["13", "15"]
9+
__postgresql_versions_el8: ["10", "12", "13", "15", "16"]
10+
__postgresql_versions_el9: ["13", "15", "16"]
1111

1212
__postgresql_data_dir: /var/lib/pgsql/data
1313

0 commit comments

Comments
 (0)