mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-24 05:30:18 +00:00
sudoers get passwordless sudo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user