2019-12-21 18:11:30 +01:00
|
|
|
---
|
|
|
|
|
2020-01-11 13:31:23 +01:00
|
|
|
- name: Check if any experimental variables are configure and if they are enabled with k3s_use_experimental
|
2020-12-12 15:27:59 +01:00
|
|
|
ansible.builtin.assert:
|
2019-12-21 18:11:30 +01:00
|
|
|
that:
|
|
|
|
- k3s_use_experimental is defined and k3s_use_experimental
|
|
|
|
success_msg: "Experimental variables are defined and enabled."
|
2020-12-12 15:27:59 +01:00
|
|
|
fail_msg: "Experimental variable k3s_etcd_datastore has been configured. If you want to use this ensure you set k3s_use_experimental"
|
2020-11-29 21:10:42 +01:00
|
|
|
when: k3s_etcd_datastore is defined and k3s_etcd_datastore
|
2020-12-12 15:27:59 +01:00
|
|
|
and (k3s_release_version | replace('v', '')) is version_compare("1.19.5", '<')
|
2020-11-29 21:10:42 +01:00
|
|
|
|
|
|
|
- name: Check if any experimental variables are configure and if they are enabled with k3s_use_experimental
|
2020-12-12 15:27:59 +01:00
|
|
|
ansible.builtin.assert:
|
2020-11-29 21:10:42 +01:00
|
|
|
that:
|
|
|
|
- k3s_use_experimental is defined and k3s_use_experimental
|
|
|
|
success_msg: "Experimental variables are defined and enabled."
|
|
|
|
fail_msg: "Experimental variable {{ item.setting }} has been configured. If you want to use this ensure you set k3s_use_experimental"
|
|
|
|
loop: "{{ k3s_experimental_config }}"
|
|
|
|
when: (item.setting in k3s_runtime_config and k3s_runtime_config[item.setting])
|
|
|
|
and ((item.until is not defined) or
|
|
|
|
(item.until is defined and (k3s_release_version | replace('v', '')) is version_compare(item.until, '<')))
|