diff options
author | Paul B <paul@bonaud.fr> | 2020-06-05 14:39:43 +0200 |
---|---|---|
committer | Paul B <paul@bonaud.fr> | 2020-06-05 14:39:43 +0200 |
commit | 0ca1cf044b84bdae8c47e2d764715dbd5e7e9d69 (patch) | |
tree | c76ddecb3b0434e45f481e8b0585e3b62ae31bb0 /tasks/postgres-cluster.yml | |
parent | 9e6f9658fbf5db657a2dd8465bf0ae4f41da161e (diff) | |
parent | b722248ed7c4a7aba2b047855b983d72a9725209 (diff) | |
download | ansible-postgresql-role-master.tar.gz ansible-postgresql-role-master.tar.zst ansible-postgresql-role-master.zip |
Diffstat (limited to 'tasks/postgres-cluster.yml')
-rw-r--r-- | tasks/postgres-cluster.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks/postgres-cluster.yml b/tasks/postgres-cluster.yml index a8e96c1..4f62d31 100644 --- a/tasks/postgres-cluster.yml +++ b/tasks/postgres-cluster.yml | |||
@@ -60,7 +60,11 @@ | |||
60 | 60 | ||
61 | - name: Add standby clone from barman script | 61 | - name: Add standby clone from barman script |
62 | include: postgres-standby-barman.yml | 62 | include: postgres-standby-barman.yml |
63 | when: postgres_barman_server is defined | 63 | when: postgres_barman_server is defined and postgres_primary.restore_barman_directory is defined |
64 | |||
65 | - name: Add standby clone from pg_basebackup | ||
66 | include: postgres-standby-basebackup.yml | ||
67 | when: postgres_primary and postgres_primary.pg_basebackup is defined | ||
64 | 68 | ||
65 | - name: Determine SSD or rotational disks | 69 | - name: Determine SSD or rotational disks |
66 | raw: 'lsblk --noheadings --nodeps --raw --output=rota | grep -q 1' | 70 | raw: 'lsblk --noheadings --nodeps --raw --output=rota | grep -q 1' |