Accessing the name of your loop_var
As of Ansible 2.8, you can get the name of the value provided toloop_control.loop_varusing theansible_loop_varvariable
For role authors, writing roles that allow loops, instead of dictating the requiredloop_varvalue, you can gather the value through the following