aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/postgres-standby-barman.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/postgres-standby-barman.yml')
-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
new file mode 100644
index 0000000..793b942
--- /dev/null
+++ b/tasks/postgres-standby-barman.yml
@@ -0,0 +1,12 @@
1---
2- name: Copy secondary script
3 template: src=standby-clone.sh.j2 dest=/root/standby-clone-{{ postgres_version }}-{{ postgres_cluster_name }}.sh mode=0755
4
5- name: Copy rsync password file
6 copy:
7 content: "{{ barman_rsync_password }}"
8 dest: /var/lib/postgresql/.rsync_pass
9 owner: postgres
10 group: postgres
11 mode: 0400
12 no_log: True