I have the following and keep in mind I do not know how many ips will be in this incoming variable but I am starting with 2 for simplicity.
vars:
host_ips: ['10.0.0.100', '10.0.0.200']
I'm trying to format them in a file using a template with Ansible.
- targets: ['10.0.0.100:9090', '10.0.0.200:9090']
What syntax in Jinja2 do I use to make the host ips look like the above targets line? I KNOW I have to iterate for sure.