From e86c10a072c0607aa4eceae79641a8a0bf8bf110 Mon Sep 17 00:00:00 2001 From: Mende Date: Tue, 8 Dec 2020 09:04:48 +0100 Subject: [PATCH] testing failed_when --- playbooks/sa-update.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/sa-update.yml b/playbooks/sa-update.yml index 4b453a5..6a60206 100644 --- a/playbooks/sa-update.yml +++ b/playbooks/sa-update.yml @@ -7,11 +7,13 @@ - name: "Update Heinlein SA Rules" command: sa-update --nogpg --channel spamassassin.heinlein-support.de + failed_when: stdout_lines != [] notify: - "restart spamassassin" - name: "Update Spamassassin SA Rules" command: sa-update --channel updates.spamassassin.org + failed_when: stdout_lines != [] notify: - "restart spamassassin"