bugfix:修复sudo helm执行缺少环境变量的bug

This commit is contained in:
fumingwei
2022-08-31 17:37:04 +08:00
parent 81cda21741
commit 9a0cd91a1b
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1 @@
Defaults env_keep += "KUBECONFIG"

View File

@@ -39,3 +39,8 @@
copy:
src: "{{ role_path }}/files/tmpfiles.d/traffic-engine.conf"
dest: /usr/lib/tmpfiles.d/
- name: "install sudoers.d for sudo helm"
copy:
src: "{{ role_path }}/files/sudoers.d/00-kubconfig"
dest: /etc/sudoers.d/