summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/unix_users/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/unix_users/tasks/main.yml b/roles/unix_users/tasks/main.yml
index 19f0dac..00c49fd 100644
--- a/roles/unix_users/tasks/main.yml
+++ b/roles/unix_users/tasks/main.yml
@@ -59,7 +59,7 @@
- name: give sudo access
with_items: "{{ unix_users }}"
- when: "{{ item.sudo|default(False) }}"
+ when: item.sudo is defined and item.sudo
copy:
content: "{{ item.username }} ALL=(ALL:ALL) NOPASSWD: ALL"
dest: "/etc/sudoers.d/{{ item.username }}"