ansible-roles/php/tasks/main.yml
Mathieu Trossevin 119e134373
[Cleanup] php and postfix
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)
2020-12-23 15:08:43 +01:00

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"