2021-09-09 15:18:11 -06:00
|
|
|
---
|
|
|
|
# file: roles/base/tasks/core_sudo.yml
|
|
|
|
|
2021-09-29 12:40:35 -06:00
|
|
|
- name: Enabled passwordless for wheel group
|
2021-09-09 15:18:11 -06:00
|
|
|
lineinfile:
|
|
|
|
path: /etc/sudoers
|
|
|
|
state: present
|
|
|
|
regexp: '^%wheel'
|
|
|
|
line: '%wheel ALL=(ALL) NOPASSWD: ALL'
|
|
|
|
validate: 'visudo -cf %s'
|
2021-09-29 12:42:49 -06:00
|
|
|
|
|
|
|
- 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'
|