forked from evolix/ansible-roles
119e134373
Comparison with litteral True and False ( `var == False` ⇔ `not var` or `var is boolean and var` or ` var is sameas False` should there be a need to check if it is really a boolean that is False and not only something evaluationg to False)
17 lines
424 B
YAML
17 lines
424 B
YAML
---
|
|
|
|
- name: Check for compatibility
|
|
fail:
|
|
msg: only compatible with Debian >= 8
|
|
when:
|
|
- ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<')
|
|
|
|
- include: main_jessie.yml
|
|
when: ansible_distribution_release == "jessie"
|
|
|
|
- include: main_stretch.yml
|
|
when: ansible_distribution_release == "stretch"
|
|
|
|
- include: main_buster.yml
|
|
when: ansible_distribution_release == "buster"
|