diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index bc29637..ad93bc1 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -37,7 +37,7 @@ name: "{{ item.logname }}" groups: sudo append: yes - when: item.sudo == true + when: item.sudo with_items: "{{ users }}" - name: Check if /etc/aliases exists