Passwordless Sudo with Ansible
Sudo without password, automatically. Short example role for ansible.
The role
- creates a new user in "sudoless" group
- adds a sudoers.d/ NOPASSWD rule for the group
Sudo without password, automatically. Short example role for ansible.
The role
Ansible needs root on the slave. One way is to allow 'sudo' without password.
Summary for gurus (the rest of us can read the article):
$
%sudoless ALL = (ALL) NOPASSWD: ALL