bugfix:修改sudo tsg-diagnose-oneshot无法执行的bug

This commit is contained in:
fumingwei
2021-09-13 18:54:03 +08:00
parent d1abe32f72
commit a3b412367a

View File

@@ -37,4 +37,11 @@
regexp: 'WantedBy=multi-user.target'
replace: 'WantedBy=workload.target'
with_items:
- /usr/lib/systemd/system/tsg-diagnose.service
- /usr/lib/systemd/system/tsg-diagnose.service
- name: "add sudo secure_path"
lineinfile:
path: /etc/sudoers
backrefs: yes
regexp: "^(.*Defaults secure_path =.*)$"
line: '\1:/opt/tsg/tsg-diagnose/scripts'