{% for host in play_hosts | sort %}
Report: {{hostvars[host]['ansible_hostname']}}
hostname
{{hostvars[host]['ansible_hostname']}}
OS
{{hostvars[host]['ansible_distribution']}}
architecture
{{hostvars[host]['ansible_architecture']}}
role
{{hostvars[host]['role']}}
uptime_cmd
{{hostvars[host]['uptime']}}
{% endfor %}