6 minimal_ansible_version: 2.11.0
7 maximal_ansible_version: 2.13.0
8 ansible_connection: local
11 - name: "Check {{ minimal_ansible_version }} <= Ansible version < {{ maximal_ansible_version }}"
13 msg: "Ansible must be between {{ minimal_ansible_version }} and {{ maximal_ansible_version }} exclusive"
15 - ansible_version.string is version(minimal_ansible_version, ">=")
16 - ansible_version.string is version(maximal_ansible_version, "<")
20 - name: "Check that python netaddr is installed"
22 msg: "Python netaddr is not present"
23 that: "'127.0.0.1' | ipaddr"
27 # CentOS 7 provides too old jinja version
28 - name: "Check that jinja is not too old (install via pip)"
30 msg: "Your Jinja version is too old, install via pip"
31 that: "{% set test %}It works{% endset %}{{ test == 'It works' }}"