bugfix:修改sudo provision-config-apply执行失败问题
This commit is contained in:
@@ -164,4 +164,11 @@
|
||||
copy:
|
||||
src: "{{ role_path }}/files/script/tsg-os-provision.sh"
|
||||
dest: /etc/profile.d/
|
||||
mode: 0755
|
||||
mode: 0755
|
||||
|
||||
- name: "add sudo secure_path"
|
||||
lineinfile:
|
||||
path: /etc/sudoers
|
||||
backrefs: yes
|
||||
regexp: "^(.*Defaults secure_path =.*)$"
|
||||
line: '\1:/opt/tsg/tsg-os-provision'
|
||||
Reference in New Issue
Block a user