+---
+- set_fact:
+ postgres_version: "{{ postgres_cluster.version }}"
+ postgres_cluster_name: "{{ postgres_cluster.name }}"
+ postgres_port: "{{ postgres_cluster.port }}"
+ postgres_fsync_enabled: "{{ postgres_cluster.fsync_enabled }}"
+ postgres_archive_enabled: "{{ postgres_cluster.archive_enabled }}"
+ postgres_max_replication_slots: "{{ postgres_cluster.max_replication_slots | default(10) }}"
+ postgres_extra_config: "{{ postgres_cluster.extra_config | default({}) }}"
+ barman_directory: "{{ postgres_cluster.barman_directory | default(None) }}"
+ postgres_primary: "{{ postgres_cluster.primary | default(None) }}"
+ postgres_checksums: "{{ postgres_cluster.checksums | default(True) }}"
+
- name: Install postgresql version {{ postgres_version }}
apt: name=postgresql-{{ postgres_version }}
when: ansible_distribution_release != 'NA'