sudoers get passwordless sudo
This commit is contained in:
parent
dcc91385c6
commit
20a721d233
|
@ -3,3 +3,11 @@
|
|||
- group:
|
||||
name: sudo
|
||||
state: present
|
||||
|
||||
- name: Allow 'sudo' group to have passwordless sudo
|
||||
lineinfile:
|
||||
dest: /etc/sudoers
|
||||
state: present
|
||||
regexp: '^%sudo'
|
||||
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
|
||||
validate: visudo -cf %s
|
||||
|
|
Loading…
Reference in New Issue