fix(configuration): guard user keys access to avoid dict.keys() method collision

This commit is contained in:
2026-04-16 15:26:34 +02:00
parent 5dc0424acb
commit 6bfaa0aa2b
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@
that:
- item.value is mapping
- item.key | string | length > 0
- item.value['keys'] is not defined or (item.value['keys'] is iterable and item.value['keys'] is not string)
- ('keys' not in item.value) or (item.value['keys'] is iterable and item.value['keys'] is not string)
fail_msg: "Each system.users entry must be a dict keyed by username; 'keys' must be a list."
quiet: true
loop: "{{ system.users | dict2items }}"