10 lines
438 B
Django/Jinja
10 lines
438 B
Django/Jinja
{{ "%-20s" % "Hostname" }} - {{ "%-20s" % "Distribution" }} - {{ "%-15s" % "OS family" }} - {{ "%-10s" % "MajorVer" }} - {{ "%-10s" % "Version" }}
|
|
{% for h in hostvars %}
|
|
{{ "%-20s" % h }} - {{ "%-20s" % hostvars[h]['ansible_distribution']
|
|
}} - {{ "%-15s" % hostvars[h]['ansible_os_family']
|
|
}} - {{ "%-10s" % hostvars[h]['ansible_distribution_major_version']
|
|
}} - {{ "%-10s" % hostvars[h]['ansible_distribution_version']
|
|
}}
|
|
{% endfor %}
|
|
|