Adding sudo group for NOPASSWD

This commit is contained in:
Tyler Hale 2021-09-29 12:42:49 -06:00
parent 30c8e34977
commit 6f75dcbce5
Signed by: Tyler
GPG key ID: 3F9270F8F70AC13D

View file

@ -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'