This commit is contained in:
Michael Grote 2024-10-23 21:41:54 +02:00
parent 47ed42905a
commit eecf4f5448

View file

@ -42,9 +42,9 @@
name: "users-sudo-{{ item.username }}"
state: "{{ item.state | default('present') }}"
user: "{{ item.username }}"
commands: "ALL=(ALL)"
commands: ALL
nopassword: "{{ item.allow_passwordless_sudo }}"
validation: absent #todo
validation: absent #todo required
loop: '{{ users }}'
when: item.allow_sudo|default(false) and item.allow_sudo is defined
#no_log: true