diff --git a/roles/mgrote_users/tasks/main.yml b/roles/mgrote_users/tasks/main.yml index 4b40e8fb..0e035719 100644 --- a/roles/mgrote_users/tasks/main.yml +++ b/roles/mgrote_users/tasks/main.yml @@ -42,7 +42,7 @@ name: "users-sudo-{{ item.username }}" state: "{{ item.state | default('present') }}" user: "{{ item.username }}" - commands: ALL + commands: ALL=(ALL) nopassword: "{{ item.allow_passwordless_sudo }}" loop: '{{ users }}' when: item.allow_sudo|default(false) and item.allow_sudo is defined