You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
playbooks/server-setup/roles/user/tasks/passwordless-sudo.yml

10 lines
281 B

---
# This playbook modifies the sudoers config to allow passwordless sudo.
- name: allow passwordless sudo for sudo group users
ansible.builtin.lineinfile:
path: /etc/sudoers
regexp: "^%sudo"
line: "%sudo\tALL=(ALL:ALL) NOPASSWD: ALL"
validate: "visudo -cf %s"