mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Update TaskInclude _raw_params with the expanded/templated path to file (#39365)
* Update TaskInclude _raw_params with the expanded/templated path to file * Add tests to validate host vars include paths
This commit is contained in:
@@ -144,6 +144,8 @@ class IncludedFile:
|
||||
include_file = loader.path_dwim(include_result['include'])
|
||||
|
||||
include_file = templar.template(include_file)
|
||||
# Update the task args to reflect the expanded/templated path
|
||||
original_task.args['_raw_params'] = include_file
|
||||
inc_file = IncludedFile(include_file, include_variables, original_task)
|
||||
else:
|
||||
# template the included role's name here
|
||||
|
||||
Reference in New Issue
Block a user