Hi all 

I have a template I've been working on for keepalived and as part of the 
template, I want to get it to loop through a list of virtual ips and sub 
interface eth0 based on the number of virtual ips to manage . What i have so 
far is below . Any one any ideas ?

virtual_ipaddress {

#Virtual IP

{% for item in keepalived_virtual_ip %}

        {{ item.address }} dev eth0 label eth0:{{ file_number | int + 1 }}

    }

    track_script {

    haproxy

    pingable_check_script

    }

-- 
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/a651cb18-54b0-4124-8c7f-d6040e922069%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to