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

11 lines
229 B
YAML
Raw Normal View History

---
# file: roles/base/tasks/core_sudo.yml
- name: Enabled passwordless sudo
lineinfile:
path: /etc/sudoers
state: present
regexp: '^%wheel'
line: '%wheel ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'