Development version: This branch contains the code for the upcoming v3 release. For the code of the current stable v1 release, check out the 1.x branch. The upcoming v3 release will be the way forward ...
I didn't found any workaround to get the index of the loop in a template for loop function called by a templatefile() call. This is a big limitation. I wanted to generate the host.ini file of ansible ...