How to use variable inside variable in ansible jinja template

Viewed 540

I am trying to set value in j2 template in ansible. But the variable contains index inside it. For example:

lb_url: {{ lbip_{{index }}_url }}

But the above format doesn't work. What is the right format to support this?

1 Answers
Related