Skip to content

Commit 22cb836

Browse files
committed
Add support for postgresql 18
1 parent 024d72b commit 22cb836

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

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, 15 and 16.
12+
The role currently works with the PostgreSQL server 10, 12, 13, 15, 16 and 18.
1313

1414
### Collection requirements
1515

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

2424
### postgresql_version
2525

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

2828
```yaml
2929
postgresql_version: "13"

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
- name: Check if requested version is supported in system (RHEL9)
2020
fail:
21-
msg: RHEL 9 supports only Postgresql 13, 15 and 16
21+
msg: RHEL 9 supports only Postgresql 13, 15, 16 and 18
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
@@ -7,8 +7,8 @@
77
# Examples of non-distribution specific (generic) internal variables:
88
__postgresql_packages: [postgresql-server]
99
__postgresql_versions_el8: ["10", "12", "13", "15", "16"]
10-
__postgresql_versions_el9: ["13", "15", "16"]
11-
__postgresql_versions_el10: ["16"]
10+
__postgresql_versions_el9: ["13", "15", "16", "18"]
11+
__postgresql_versions_el10: ["16", "18"]
1212

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

0 commit comments

Comments
 (0)