Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 70e122c0971bae0f2aec9706d852adad > files > 162

ansible-0.7.1-1.fc16.noarch.rpm

# example of how to get the ipaddress of every machine in the webservers group
# for use in a template

{% for host in groups['webservers'] %}
  HOST: {{ host }} IP: {{ hostvars[host]['ansible_all_ipv4_addresses'][0] }}
{% endfor %}