From da8bea46ea7b27a4554f55fc267963e5566ad033 Mon Sep 17 00:00:00 2001
From: Florian Pritz <bluewind@xinu.at>
Date: Tue, 25 Dec 2018 16:54:32 +0100
Subject: [PATCH] Fix deprecated result|failed syntax

Signed-off-by: Florian Pritz <bluewind@xinu.at>
---
 roles/borg-client/tasks/main.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/borg-client/tasks/main.yml b/roles/borg-client/tasks/main.yml
index 6349dde08..5e1aad1e7 100644
--- a/roles/borg-client/tasks/main.yml
+++ b/roles/borg-client/tasks/main.yml
@@ -13,7 +13,7 @@
 
 - name: init borg repository
   command: borg init -e keyfile {{ backup_host }}:{{ backup_dir }}
-  when: borg_list | failed
+  when: borg_list is failed
   environment:
     BORG_PASSPHRASE: ""
   ignore_errors: True # This can sometimes fail if a backup is in progress :/
@@ -35,7 +35,7 @@
 
 - name: make postgres backup directory
   file: path=/var/lib/postgres/backup owner=postgres group=postgres state=directory
-  when: check_postgres_user|succeeded and postgres_backup_dir is defined
+  when: check_postgres_user is succeeded and postgres_backup_dir is defined
 
 - name: install mysql backup script
   template: src=backup-mysql.sh.j2 dest=/usr/local/bin/backup-mysql.sh owner=root group=root mode=0755
-- 
GitLab