From 13abc4499242317302a028f665c7232879e9d3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sun, 15 Apr 2018 16:58:33 +0200 Subject: [PATCH] evolinux-users: use assert instead of fail --- evolinux-users/tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/evolinux-users/tasks/main.yml b/evolinux-users/tasks/main.yml index bf9033bc..a32bbd13 100644 --- a/evolinux-users/tasks/main.yml +++ b/evolinux-users/tasks/main.yml @@ -1,9 +1,10 @@ --- -- fail: +- assert: + that: + - ansible_distribution == "Debian" + - ansible_distribution_major_version | version_compare('8', '>=') msg: only compatible with Debian >= 8 - when: - - ansible_distribution != "Debian" or ansible_distribution_major_version | version_compare('8', '<') - debug: msg: "Warning: empty 'evolinux_users' variable, tasks will be skipped!"