Skip to content

Commit

Permalink
Merge pull request #22 from chtitux/install-postgresql-pglogical
Browse files Browse the repository at this point in the history
Install pglogical package if present in shared_preload_libraries
  • Loading branch information
misdoro authored Feb 4, 2021
2 parents 33a4470 + db95a0c commit e32e8d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/postgres-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
- ansible_distribution_release != 'NA'
- postgres_version in ['9.3', '9.4', '9.5', '9.6', '10', '11', '12']

- name: Install pglogical version {{ postgres_version }}
apt:
name: "postgresql-{{ postgres_version }}-pglogical"
when:
- ansible_distribution_release != 'NA'
- postgres_extra_config.shared_preload_libraries is defined and 'pglogical' in postgres_extra_config.shared_preload_libraries

- name: Set initdb options
set_fact: postgres_initdb_option="{% if postgres_checksums %}--data-checksums{% endif %}"

Expand Down

0 comments on commit e32e8d9

Please sign in to comment.