Hello ansible people,
I want to extract an interface's IPv6 link-local address from facts. I've
figured out a round-about way of doing this in a template. I do:
{% for v6 in hostvars[inventory_hostname]['ansible_em1']['ipv6'] %}
{% if v6.scope == 'link' %}
{{v6.address}};
{% endif %}
{% endfor %}
However, I don't know how to do this in a playbook where I wish to use the
link-local address in a task. Any suggestions?
Regards,
Anand
--
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.