evolinux-users: use assert instead of fail
This commit is contained in:
parent
fa3c79bd0d
commit
1d8fc48fa2
|
@ -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!"
|
||||
|
|
Loading…
Reference in a new issue