fix allow unsupported distribution (#9904)

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
pull/9915/head
ERIK 2023-03-21 16:35:09 +08:00 committed by GitHub
parent 7859aee735
commit fb8631cdf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -133,3 +133,6 @@ ntp_servers:
## Used to control no_log attribute ## Used to control no_log attribute
unsafe_show_logs: false unsafe_show_logs: false
## 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

View File

@ -97,6 +97,3 @@ containerd_supported_distributions:
- "UnionTech" - "UnionTech"
- "UniontechOS" - "UniontechOS"
- "openEuler" - "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

View File

@ -24,7 +24,7 @@
- name: Stop if the os does not support - name: Stop if the os does not support
assert: 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" msg: "{{ ansible_distribution }} is not a known OS"
when: not ignore_assert_errors when: not ignore_assert_errors