# {{ ansible_managed }} {% for item in groups['lab'] %} {{ hostvars[item]['ansible_default_ipv4']['address'] }} {{ hostvars[item]['inventory_hostname']}} {{ hostvars[item]['inventory_hostname_short']}} {% endfor %}