aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorPaul B <paul+gh@bonaud.fr>2019-05-03 14:27:18 +0200
committerGitHub <noreply@github.com>2019-05-03 14:27:18 +0200
commitb9038ad7484a472f1e745906fb0d26530061b58d (patch)
tree4416f99a827f63e37ab98d94c66126d33ab323b0 /tasks
parentc6719a82860c7855fb749f98734fe17c38c2fe78 (diff)
parent99504fed92577795e1ab0bf2ec0cd30a2435799f (diff)
downloadansible-postgresql-role-b9038ad7484a472f1e745906fb0d26530061b58d.tar.gz
ansible-postgresql-role-b9038ad7484a472f1e745906fb0d26530061b58d.tar.zst
ansible-postgresql-role-b9038ad7484a472f1e745906fb0d26530061b58d.zip
Merge pull request #8 from chtitux/barman-url1.5.0
Allow to set options for barman connectivity
Diffstat (limited to 'tasks')
-rw-r--r--tasks/postgres-standby-barman.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tasks/postgres-standby-barman.yml b/tasks/postgres-standby-barman.yml
index 65e87a6..6a94b75 100644
--- a/tasks/postgres-standby-barman.yml
+++ b/tasks/postgres-standby-barman.yml
@@ -1,4 +1,16 @@
1--- 1---
2- name: Compute barman remote URL
3 set_fact:
4 barman_remote_url: "{{ scheme }}{{ user }}{{ server }}{{ delimiter }}{{ path }}"
5 rsync_options: "{{ postgres_barman_rsync_options | default('') }}{{ rsync_password_file }}"
6 vars:
7 scheme: "{{ postgres_barman_rsync_enabled | ternary('rsync://', '') }}"
8 user: "{{ postgres_barman_remote_user is defined | ternary(postgres_barman_remote_user + '@', '') }}"
9 server: "{{ postgres_barman_server }}"
10 delimiter: "{{ postgres_barman_rsync_enabled | ternary('', ':')}}"
11 path: "{{ postgres_barman_path_prefix | default('~') }}"
12 rsync_password_file: "{{ postgres_barman_rsync_enabled | ternary(' --password-file=/var/lib/postgresql/.rsync_pass ', '') }}"
13
2- name: Copy secondary script 14- name: Copy secondary script
3 template: src=standby-clone.sh.j2 dest=/root/standby-clone-{{ postgres_version }}-{{ postgres_cluster_name }}.sh mode=0755 15 template: src=standby-clone.sh.j2 dest=/root/standby-clone-{{ postgres_version }}-{{ postgres_cluster_name }}.sh mode=0755
4 16