mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-14 01:10:19 +01:00
12 lines
468 B
YAML
12 lines
468 B
YAML
|
---
|
||
|
|
||
|
- name: Check that Ansible v{{ ansible_version.string }} is supported by this role
|
||
|
ansible.builtin.assert:
|
||
|
that:
|
||
|
- ansible_version.string is version_compare(k3s_ansible_min_version, '>=')
|
||
|
fail_msg: "Ansible v{{ ansible_version.string }} is not supported by this role. Please install >= v{{ k3s_ansible_min_version }}"
|
||
|
success_msg: "Ansible v{{ ansible_version.string }} is supported."
|
||
|
become: false
|
||
|
delegate_to: localhost
|
||
|
run_once: true
|