Files
ansible-role-sudo/tasks
volker.raschekandCopilot 09f4b9fe4c fix(tasks): match entries with empty user, group or runas values
The conditions relied on 'is defined' and 'is not defined'. An entry which
declares the unused key with an empty string - as documented in
defaults/main.yaml - matched none of the four tasks, so the sudoers drop-in
file was silently not created. Comparing the length of the defaulted values
instead makes exactly one task apply to every entry accepted by the
validation.

Co-authored-by: Copilot <copilot@github.com>
2026-09-10 21:41:34 +02:00
..