Adding sudo group for NOPASSWD
This commit is contained in:
parent
30c8e34977
commit
6f75dcbce5
1 changed files with 8 additions and 0 deletions
|
@ -8,3 +8,11 @@
|
|||
regexp: '^%wheel'
|
||||
line: '%wheel ALL=(ALL) NOPASSWD: ALL'
|
||||
validate: 'visudo -cf %s'
|
||||
|
||||
- name: Enabled passwordless for sudo group
|
||||
lineinfile:
|
||||
path: /etc/sudoers
|
||||
state: present
|
||||
regexp: '^%sudo'
|
||||
line: '%sudo ALL=(ALL:ALL) NOPASSWD: ALL'
|
||||
validate: 'visudo -cf %s'
|
||||
|
|
Loading…
Reference in a new issue