mirror of https://github.com/ansible/ansible.git
* Fix name parameter templating in include_role module (#36372) An IncludedFile() object built using the original_task will have its _task bound to the original_task. The iterative reassignment of original_task._role_name during with_item loops leaves all returned included_files with the same ._task._role_name (the final name from the with_items list). This commit builds IncludedFile() objects from an original_task.copy() to avoid the problematic binding. (cherry picked from commitpull/38044/merge54e70fc783
) * Test include role with items in name #36372 (#37001) * Tests for #36372 * Tests for #36372 * Tests for #36372 (cherry picked from commit8c4f349743
) * Add changelog for #36372
parent
687780323a
commit
0b0bb65198
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- include_role - Fix parameter templating (https://github.com/ansible/ansible/pull/36372)
|
@ -1,2 +1,3 @@
|
||||
- debug:
|
||||
msg: In role2
|
||||
register: _role2_result
|
||||
|
@ -1,2 +1,3 @@
|
||||
- debug:
|
||||
msg: In role3
|
||||
register: _role3_result
|
||||
|
Loading…
Reference in New Issue