21 lines
817 B
Django/Jinja
21 lines
817 B
Django/Jinja
<!DOCTYPE html>
|
|
<html lang="fr-FR">
|
|
<head>
|
|
<title>Machine {{inventory_hostname}}</title>
|
|
</head>
|
|
<body>
|
|
<h1>Distribution : {{ansible_distribution}}</h1>
|
|
<p>Major version : {{ansible_distribution_major_version}}</p>
|
|
<p>Distribution version : {{ansible_distribution_version}}</p>
|
|
<p>Révision : {{ansible_distribution_release}}</p>
|
|
<p>IP : {{ ansible_default_ipv4.address }} - {{ ansible_ens33.ipv4.address }}
|
|
{% for interface_name in ansible_interfaces %}
|
|
<p>IP ({{ interface_name }}): {{ hostvars[inventory_hostname]['ansible_' + interface_name]['ipv4']['address'] }}</p>
|
|
{% endfor %}
|
|
</p>
|
|
<p>RAM : {{ ansible_memtotal_mb }} Mb</p>
|
|
{% for cpu in ansible_processor %}
|
|
<p>CPU : {{ cpu }}</p>
|
|
{% endfor %}
|
|
</body>
|