mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-14 09:20:19 +01:00
12 lines
710 B
YAML
12 lines
710 B
YAML
---
|
|
|
|
- name: Check if any experimental variables are configure and if they are enabled with k3s_use_experimental
|
|
assert:
|
|
that:
|
|
- k3s_use_experimental is defined and k3s_use_experimental
|
|
success_msg: "Experimental variables are defined and enabled."
|
|
fail_msg: "Experimental variables have been configured. If you want to use them ensure you set k3s_use_experimental"
|
|
when: ("rootless" in k3s_runtime_config and k3s_runtime_config['rootless'])
|
|
or (k3s_etcd_datastore is defined and k3s_etcd_datastore)
|
|
or ("secrets-encryption" in k3s_runtime_config and k3s_runtime_config['secrets-encryption'])
|
|
or ("selinux" in k3s_runtime_config and k3s_runtime_config['selinux'])
|