mirror of https://github.com/ansible/ansible.git
Fix handling of ansible_loop_var and ansible_index_var inside ansible.builtin.include_tasks (#82789)
* added integration test for issue 82655 regarding ansible_loop_var and ansible_index_var inside included yml * ensure correct handling of ansible_loop_var and ansible_index_var inside ansible builtin include_tasks Co-authored-by: Matt <matt@sivel.net> * added changelog * fixed new line issuepull/82725/head
parent
2cf52daa03
commit
6db7a3bd64
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- include_tasks - include `ansible_loop_var` and `ansible_index_var` in a loop (https://github.com/ansible/ansible/issues/82655).
|
||||
@ -0,0 +1,5 @@
|
||||
- name: Assert ansible_loop_var and ansible_index_var are defined with correct values
|
||||
assert:
|
||||
that:
|
||||
- ansible_loop_var is defined and ansible_index_var is defined
|
||||
- ansible_loop_var == "should_show_up_loop" and ansible_index_var == "should_show_up_index"
|
||||
Loading…
Reference in New Issue