mirror of
https://github.com/roles-ansible/ansible_role_versioncheck.git
synced 2024-08-16 15:59:49 +02:00
7 lines
318 B
YAML
7 lines
318 B
YAML
---
|
|
- name: "check if ansible version is above {{ check_ansible_version }}"
|
|
assert:
|
|
that: "ansible_version.full is version_compare(check_ansible_version, '>=')"
|
|
msg: >
|
|
"You need at least ansible version {{ check_ansible_version }}. Current Version: {{ ansible_version.full }}"
|
|
delegate_to: localhost
|