mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-16 18:50:08 -03:30
fix allow unsupported distribution (#9904)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
This commit is contained in:
@@ -97,6 +97,3 @@ containerd_supported_distributions:
|
||||
- "UnionTech"
|
||||
- "UniontechOS"
|
||||
- "openEuler"
|
||||
|
||||
# If enabled it will allow kubespray to attempt setup even if the distribution is not supported. For unsupported distributions this can lead to unexpected failures in some cases.
|
||||
allow_unsupported_distribution_setup: false
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
- name: Stop if the os does not support
|
||||
assert:
|
||||
that: ansible_distribution in supported_os_distributions
|
||||
that: (allow_unsupported_distribution_setup | default(false)) or ansible_distribution in supported_os_distributions
|
||||
msg: "{{ ansible_distribution }} is not a known OS"
|
||||
when: not ignore_assert_errors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user