aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/postgres-cluster.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/postgres-cluster.yml')
-rw-r--r--tasks/postgres-cluster.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tasks/postgres-cluster.yml b/tasks/postgres-cluster.yml
index 769d119..c052982 100644
--- a/tasks/postgres-cluster.yml
+++ b/tasks/postgres-cluster.yml
@@ -1,3 +1,16 @@
1---
2- set_fact:
3 postgres_version: "{{ postgres_cluster.version }}"
4 postgres_cluster_name: "{{ postgres_cluster.name }}"
5 postgres_port: "{{ postgres_cluster.port }}"
6 postgres_fsync_enabled: "{{ postgres_cluster.fsync_enabled }}"
7 postgres_archive_enabled: "{{ postgres_cluster.archive_enabled }}"
8 postgres_max_replication_slots: "{{ postgres_cluster.max_replication_slots | default(10) }}"
9 postgres_extra_config: "{{ postgres_cluster.extra_config | default({}) }}"
10 barman_directory: "{{ postgres_cluster.barman_directory | default(None) }}"
11 postgres_primary: "{{ postgres_cluster.primary | default(None) }}"
12 postgres_checksums: "{{ postgres_cluster.checksums | default(True) }}"
13
1- name: Install postgresql version {{ postgres_version }} 14- name: Install postgresql version {{ postgres_version }}
2 apt: name=postgresql-{{ postgres_version }} 15 apt: name=postgresql-{{ postgres_version }}
3 when: ansible_distribution_release != 'NA' 16 when: ansible_distribution_release != 'NA'