diff --git a/roles/mgrote_users/tasks/main.yml b/roles/mgrote_users/tasks/main.yml index f1d2dcdc..7d72eb01 100644 --- a/roles/mgrote_users/tasks/main.yml +++ b/roles/mgrote_users/tasks/main.yml @@ -41,7 +41,7 @@ community.general.sudoers: name: "users-sudo-{{ item.username }}" state: "{{ item.state | default('present') }}" - user: "(ALL)" + user: "{{ item.username }} ALL=(ALL)" commands: "ALL" host: "ALL" nopassword: "{{ item.allow_passwordless_sudo }}"