Hi Kahlil,
Thank you for this tip. It works!
So you mentioned that with Jinja 2.7 this is easier. I already have Jinja
2.7.1. What feature of this version can I use to avoid this hack?
Regards,
Anand
On Monday, 30 December 2013 00:49:00 UTC+1, Kahlil Hodgson wrote:
>
> There will be cleaner ways to do this once jinja2.7 becomes more
> readily available, but for now you could probably simulate the above
> loop with 'with_items' and a 'when' conditional:
>
> tasks:
> - name: ipv6 link local
> debug: msg="{{ item.address }}"
> when: item.scope == 'link'
> with_items: ansible_em1.ipv6
>
> Yes, this is an ugly hack.
>
--
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].
For more options, visit https://groups.google.com/groups/opt_out.