bugfix:修改sudo tsg-diagnose-oneshot无法执行的bug
This commit is contained in:
@@ -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'
|
||||
Reference in New Issue
Block a user