Closed tzwken closed 1 year ago
即便在ansible-playbook命令行中增加了-b参数一样会报错,ansible_env的SSH_CLIENT这个变量只有在root的情况下才会设置。 解决办法: 在playbook文件中增加become: True,命令行中去掉-b参数
非root用户也能正常安装,在很多管理系统中,root用户的密码和key都是要严格保密起来的。只能用普通用户通过sudo进行安装
如上
No response
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
https://github.com/easzlab/kubeasz/issues/1272
What happened? 发生了什么问题?
即便在ansible-playbook命令行中增加了-b参数一样会报错,ansible_env的SSH_CLIENT这个变量只有在root的情况下才会设置。 解决办法: 在playbook文件中增加become: True,命令行中去掉-b参数
What did you expect to happen? 期望的结果是什么?
非root用户也能正常安装,在很多管理系统中,root用户的密码和key都是要严格保密起来的。只能用普通用户通过sudo进行安装
How can we reproduce it (as minimally and precisely as possible)? 尽可能最小化、精确地描述如何复现问题
如上
Anything else we need to know? 其他需要说明的情况
No response
Kubernetes version k8s 版本
Kubeasz version
OS version 操作系统版本
Related plugins (CNI, CSI, ...) and versions (if applicable) 其他网络插件等需要说明的情况