Hi Guys,

Im trying to get my ansible script to use the below for loop to populate a 
configfile template generated from Jinja2.

The line i cant get working is 

{% for hostname in {{ redishosts }} %}
server "{{ hostname }}" {{ 
hostvars[host]['ansible_eth0']['ipv4']['address'] }} check port 6379 inter 
1s\r\n
{% endfor %}


Im trying to get the hostname the ip4 address and the text around it. 
Everytime it runs it fails stating expecting : not }

Ive tried everything i can think of but i cant get it working. Any help 
apreciated


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1a46575f-44d0-4241-b281-b0743555e226%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to