mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-03-23 12:20:18 +00:00
sudoers get passwordless sudo
This commit is contained in:
@@ -3,3 +3,11 @@
|
|||||||
- group:
|
- group:
|
||||||
name: sudo
|
name: sudo
|
||||||
state: present
|
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