mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-14 06:40:21 +01:00
13 lines
482 B
YAML
13 lines
482 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
|