1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_versioncheck.git synced 2024-08-16 15:59:49 +02:00
ansible_role_versioncheck/tasks/main.yml
2022-12-27 22:54:49 +01:00

8 lines
440 B
YAML

---
- name: "Check if ansible version is above {{ check_ansible_version }}"
ansible.builtin.assert:
that:
- "ansible_version.full is version_compare(check_ansible_version, '>=')"
fail_msg: "[ERROR] You need at least ansible version {{ check_ansible_version }}. Current Version: {{ ansible_version.full }}"
success_msg: "Congratulations. You are using ansible version {{ ansible_version.full }}"
delegate_to: localhost