Skip to content
Snippets Groups Projects
Commit f61afa42 authored by Hannes Braun's avatar Hannes Braun :upside_down:
Browse files

Changed sudoers task to handle unset variable

parent 41fc32cd
Branches
Tags
No related merge requests found
......@@ -31,7 +31,9 @@
group: root
mode: 0440
validate: /usr/sbin/visudo -cf %s
when: ( item.sudo = true )
when:
- ( item.sudo is defined)
- ( item.sudo == true )
with_items: "{{ human_users }}"
- name: Add user to groups
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment