I know it is stupid question, but how can I use the beow code in my
playbook . Do we need to use any command or shell for this ?
{% for host in groups['app_servers'] %}
{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}
{% endfor %}
--
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/3259c384-0a48-4797-ba95-2f6a5a8dd2ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.