8bdd0bb82f
We have multiple breakage report with Ansible 2.10+ in https://github.com/kubernetes-sigs/kubespray/issues/6762 README.md already recommended 2.9+ Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
17 lines
589 B
YAML
17 lines
589 B
YAML
---
|
|
- hosts: localhost
|
|
gather_facts: false
|
|
become: no
|
|
vars:
|
|
minimal_ansible_version: 2.9.0
|
|
maximal_ansible_version: 2.10.0
|
|
ansible_connection: local
|
|
tasks:
|
|
- name: "Check {{ minimal_ansible_version }} <= Ansible version < {{ maximal_ansible_version }}"
|
|
assert:
|
|
msg: "Ansible must be between {{ minimal_ansible_version }} and {{ maximal_ansible_version }}"
|
|
that:
|
|
- ansible_version.string is version(minimal_ansible_version, ">=")
|
|
- ansible_version.string is version(maximal_ansible_version, "<")
|
|
tags:
|
|
- check
|