This commit is contained in:
Michael Grote 2024-10-23 21:40:19 +02:00
parent e1fce955e4
commit 69b7938e31

View file

@ -42,7 +42,7 @@
name: "users-sudo-{{ item.username }}"
state: "{{ item.state | default('present') }}"
user: "{{ item.username }}"
commands: ALL=(ALL)
commands: "ALL=(ALL)"
nopassword: "{{ item.allow_passwordless_sudo }}"
loop: '{{ users }}'
when: item.allow_sudo|default(false) and item.allow_sudo is defined