evolinux: Name and improve compatibility checks
This commit is contained in:
parent
cb941bfe61
commit
e79640d770
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: "Compatibility check"
|
- name: "System compatibility checks"
|
||||||
fail:
|
assert:
|
||||||
|
that:
|
||||||
|
- ansible_distribution == "Debian"
|
||||||
|
- ansible_distribution_major_version | version_compare('8', '>=')
|
||||||
msg: only compatible with Debian >= 8
|
msg: only compatible with Debian >= 8
|
||||||
when:
|
|
||||||
- ansible_distribution != "Debian" or ansible_distribution_major_version | version_compare('8', '<')
|
|
||||||
|
|
||||||
- name: Apt configuration
|
- name: Apt configuration
|
||||||
include_role:
|
include_role:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- assert:
|
- name: "System compatibility checks"
|
||||||
|
assert:
|
||||||
that:
|
that:
|
||||||
- ansible_distribution == "Debian"
|
- ansible_distribution == "Debian"
|
||||||
- ansible_distribution_major_version | version_compare('8', '>=')
|
- ansible_distribution_major_version | version_compare('8', '>=')
|
||||||
|
|
Loading…
Reference in a new issue