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 Prerequisites Applying this example file requires you to have Ansible working . Tero's rule #1 for IaC: Manual before auto. So it's a good idea to try creating passwordless sudo manually first. Draft: This article has commands written…