fix(semaphore/configure): use ['keys'] subscript not .keys attribute

Jinja interpreted semaphore_config.keys as the dict method rather than
the 'keys' field, causing 'Invalid data passed to loop' failure. Bracket
subscript disambiguates.
This commit is contained in:
Hermes Agent service account
2026-05-29 22:45:16 -05:00
parent 0f0b5db29b
commit 0be33cb8db

View File

@@ -99,7 +99,7 @@
) )
}} }}
status_code: [201, 204] status_code: [201, 204]
loop: "{{ semaphore_config.keys }}" loop: "{{ semaphore_config['keys'] }}"
loop_control: loop_control:
label: "{{ item.name }}" label: "{{ item.name }}"
when: item.name not in (_semaphore_keys.json | map(attribute='name') | list) when: item.name not in (_semaphore_keys.json | map(attribute='name') | list)