TASK [prepare/base : 添加 epel 仓库] ***
fatal: [192.168.227.130]: FAILED! => {"msg": "An unhandled exception occurred while templating '{%- if ansible_distribution_major_version is version('8', '<') -%} http://mirrors.aliyun.com/epel/$releasever/$basearch {%- else -%} https://mirrors.aliyun.com/epel/$releasever/Everything/$basearch {%- endif -%}'. Error was a <class 'ansible.errors.AnsibleFilterError'>, original message: Version comparison: '<' not supported between instances of 'str' and 'int'"}
缺陷描述
kylin v10 x86 安装k8s 1.22 报错
TASK [prepare/base : 添加 epel 仓库] *** fatal: [192.168.227.130]: FAILED! => {"msg": "An unhandled exception occurred while templating '{%- if ansible_distribution_major_version is version('8', '<') -%} http://mirrors.aliyun.com/epel/$releasever/$basearch {%- else -%} https://mirrors.aliyun.com/epel/$releasever/Everything/$basearch {%- endif -%}'. Error was a <class 'ansible.errors.AnsibleFilterError'>, original message: Version comparison: '<' not supported between instances of 'str' and 'int'"}