Configure sudo without a password

You can give users and user groups the ability to run some or all commands as root without a password.

In the following example, the admin group is granted sudo access without a password. In this example, the unique_identifier_for_resource_creation parameter serves as a unique identifier when a resource is created. The same parameter specifies the user group if a user_group value was not previously configured.
 
Copy
ensure_sudo_is_installed:
  package_ensure: 'installed'
  drop_ins:
    unique_identifier_for_resource_creation:
      user_group: 'admin'
      priority: 99
      options: ['NOPASSWD:']