mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -07: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:
parent
2f5161628a
commit
4b01b92cfe
5 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue