bugfix:修复sudo k3s执行失败的bug

This commit is contained in:
fumingwei
2022-08-15 11:03:03 +08:00
parent 3c67afdd3e
commit 6fe0b58ec4

View File

@@ -23,3 +23,10 @@
src: "{{ role_path }}/files/k3s.sh"
dest: /etc/profile.d/
mode: 0755
- name: "add sudo secure_path"
lineinfile:
path: /etc/sudoers
backrefs: yes
regexp: "^(.*Defaults secure_path =.*)$"
line: '\1:/usr/local/bin'