solved it with
{% for host in groups['server_group'] %} --dns={{
hostvars[host][nic].ipv4.address }} {% endfor %}
where nic is a group var.
--
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/b79e25b9-11cc-4c04-931f-3c26fa5a5da6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.