This commit is contained in:
parent
c834d84098
commit
5a016d7de3
@ -13,3 +13,12 @@
|
|||||||
- regexp: '^{{user.name}}\s'
|
- regexp: '^{{user.name}}\s'
|
||||||
line: "{{user.name}} ALL = (ALL) NOPASSWD:ALL"
|
line: "{{user.name}} ALL = (ALL) NOPASSWD:ALL"
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
|
- name: change secure path
|
||||||
|
replace:
|
||||||
|
path: "/etc/sudoers"
|
||||||
|
regexp: ^Defaults\s*secure_path.*
|
||||||
|
replace: Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
|
||||||
|
validate: 'visudo -cf "%s"'
|
||||||
|
become: true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user