diff --git a/tasks/postgres-cluster.yml b/tasks/postgres-cluster.yml index 4f62d31..9e71c78 100644 --- a/tasks/postgres-cluster.yml +++ b/tasks/postgres-cluster.yml @@ -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 %}"