beef up the AI/ML framework tests by adding InfluxDB as data source and populate...
[it/test.git] / XTesting / kubespray / ansible_version.yml
1 ---
2 - hosts: localhost
3   gather_facts: false
4   become: no
5   vars:
6     minimal_ansible_version: 2.11.0
7     maximal_ansible_version: 2.13.0
8     ansible_connection: local
9   tags: always
10   tasks:
11     - name: "Check {{ minimal_ansible_version }} <= Ansible version < {{ maximal_ansible_version }}"
12       assert:
13         msg: "Ansible must be between {{ minimal_ansible_version }} and {{ maximal_ansible_version }} exclusive"
14         that:
15           - ansible_version.string is version(minimal_ansible_version, ">=")
16           - ansible_version.string is version(maximal_ansible_version, "<")
17       tags:
18         - check
19
20     - name: "Check that python netaddr is installed"
21       assert:
22         msg: "Python netaddr is not present"
23         that: "'127.0.0.1' | ipaddr"
24       tags:
25         - check
26
27     # CentOS 7 provides too old jinja version
28     - name: "Check that jinja is not too old (install via pip)"
29       assert:
30         msg: "Your Jinja version is too old, install via pip"
31         that: "{% set test %}It works{% endset %}{{ test == 'It works' }}"
32       tags:
33         - check