Ansible-Linux_Base/roles/base/tasks/core_sudo.yml

19 lines
440 B
YAML
Raw Normal View History

---
# file: roles/base/tasks/core_sudo.yml
2021-09-29 12:40:35 -06:00
- name: Enabled passwordless for wheel group
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'