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

View File

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