16 lines
586 B
YAML
16 lines
586 B
YAML
---
|
|
- name: Fail if distribution not supported
|
|
ansible.builtin.fail:
|
|
msg: "{{ lookup('ansible.builtin.template', 'distroerror.j2').strip() }}"
|
|
when: checkfailed
|
|
loop:
|
|
- "{{ compatcheck_distro | length == 0 }}"
|
|
- >
|
|
{{
|
|
ansible_distribution_major_version != 'n/a' and
|
|
compatcheck_distro[0].version_min | default(0) > ansible_distribution_major_version | int
|
|
}}
|
|
- "{{ compatcheck_distro[0].version_max is defined and compatcheck_distro[0].version_max < ansible_distribution_major_version | int }}"
|
|
loop_control:
|
|
loop_var: checkfailed
|