mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-14 14:50:20 +01:00
7e4a16e167
- Restructured when and asserts - Standardise molecule call, add systemd config
13 lines
481 B
YAML
13 lines
481 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
|