blob: 8be8fbf04fa53330e9da09158813d02d447ff5e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
---
- name: Verify Ansible version is greater than or equal to 2.2.0
hosts: localhost
connection: local
become: no
gather_facts: no
tasks:
- name: Verify Ansible version is greater than or equal to 2.2.0
fail:
msg: "Unsupported ansible version: {{ ansible_version.full }} found"
when: not ansible_version.full | version_compare('2.2.0', 'ge')
|