diff options
author | Paul B <paul.bonaud@capitainetrain.com> | 2018-08-31 11:49:09 +0200 |
---|---|---|
committer | Paul B <paul.bonaud@capitainetrain.com> | 2018-08-31 12:00:24 +0200 |
commit | d0bc90e08c29e881c388c6803ed9c49dff1f1776 (patch) | |
tree | e5f633a7461f3d339ef89758fc7bb3f1b91563d3 /tasks/postgres-standby-barman.yml | |
download | ansible-postgresql-role-d0bc90e08c29e881c388c6803ed9c49dff1f1776.tar.gz ansible-postgresql-role-d0bc90e08c29e881c388c6803ed9c49dff1f1776.tar.zst ansible-postgresql-role-d0bc90e08c29e881c388c6803ed9c49dff1f1776.zip |
Initial commit open sourcing Postgresql Ansible role1.0.0
Diffstat (limited to 'tasks/postgres-standby-barman.yml')
-rw-r--r-- | tasks/postgres-standby-barman.yml | 12 |
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 | ||