diff --git a/roles/mgrote_users/tasks/main.yml b/roles/mgrote_users/tasks/main.yml index e1482991..da4d40d0 100644 --- a/roles/mgrote_users/tasks/main.yml +++ b/roles/mgrote_users/tasks/main.yml @@ -62,5 +62,5 @@ path: "/etc/sudoers.d/users-sudo-{{ item.username }}" state: "{{ item.state | default('present') }}" loop: '{{ users }}' - when: (item.allow_sudo|default(false) and item.allow_sudo is defined) and (item.state == absent) + when: (item.allow_sudo|default(false) and item.allow_sudo is defined) and (item.state is absent) # no_log: true