ansible-training-test/templates/report.html

15 lines
559 B
HTML
Raw Normal View History

2018-07-27 10:01:50 +02:00
<html>
<body>
{% for host in play_hosts | sort %}
<h3>Report: {{hostvars[host]['ansible_hostname']}}</h3>
<table>
<tr><td>hostname</td><td>{{hostvars[host]['ansible_hostname']}}</td></tr>
<tr><td>OS</td><td>{{hostvars[host]['ansible_distribution']}}</td></tr>
<tr><td>architecture</td><td>{{hostvars[host]['ansible_architecture']}}</td></tr>
<tr><td>role</td><td>{{hostvars[host]['role']}}</td></tr>
<tr><td>uptime_cmd</td><td>{{hostvars[host]['uptime']}}</td></tr>
</table>
{% endfor %}
</body>
</html>