Fix duplicate dict key warning in bootstrap_os task includes (#12488)

Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
This commit is contained in:
Ali Afsharzadeh 2025-08-26 12:02:11 +03:30 committed by GitHub
parent f973deb95f
commit 7d79f17b12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,8 +16,7 @@
tags:
- facts
with_first_found:
- &search
files:
- files: &search_files
- "{{ os_release_dict['ID'] }}-{{ os_release_dict['VARIANT_ID'] }}.yml"
- "{{ os_release_dict['ID'] }}.yml"
paths:
@ -26,8 +25,8 @@
- name: Include tasks
include_tasks: "{{ included_tasks_file }}"
with_first_found:
- <<: *search
paths: []
- files: *search_files
skip: true
loop_control:
loop_var: included_tasks_file