Say I have:
rn2: [x,y,z]
and in a task I want to output the current index of the variable it is currently using
- name: Output
shell: echo "{{ item|int }}"
loop: "{{rn2}}"
My expected is to output
0
1
2
but it only outputs
0
0
0
My goal is to increment the number as it loops through the list.