2020-11-25 09:48:24 +00:00
|
|
|
^ Host \\ IP ^ Hardware ^ Distribution \\ Version ^ Package Mgr \\ Installed ^ Service Mgr ^
|
|
|
|
{% for h in hostvars|sort %}^ [[ {{ h }} ]] \\ {{ hostvars[h]['ansible_default_ipv4']['address']|default('-') }} {#
|
|
|
|
#}{% if 'ansible_distribution' in hostvars[h] %} {#
|
|
|
|
#}|{% if hostvars[h]['ansible_virtualization_type']|default('-') == "lxc"
|
|
|
|
%}LXC{% else
|
|
|
|
%}{% if hostvars[h]['ansible_virtualization_role']|default('-') == 'guest'
|
|
|
|
%}({{ hostvars[h]['ansible_virtualization_type']|default('-')|upper}}) {% endif
|
|
|
|
%}**{{ hostvars[h]['ansible_system_vendor']|default('-') }}** \\ {{ hostvars[h]['ansible_product_name']|default('-') }}{#
|
|
|
|
#}{% endif
|
|
|
|
%}| **{{ hostvars[h]['ansible_distribution'] }}** \\ {{ hostvars[h]['ansible_distribution_version'] }} - {{ hostvars[h]['ansible_distribution_release']|default('-') }}{#
|
|
|
|
#}| {{ hostvars[h]['ansible_pkg_mgr'] }} / {{ (hostvars[h]['ansible_facts']['packages'])|default([])|length }} {#
|
|
|
|
#}| {{ hostvars[h]['ansible_service_mgr'] }} |
|
|
|
|
{% else %}||||||
|
|
|
|
{% endif %}
|
2020-11-25 09:41:02 +00:00
|
|
|
{% endfor %}
|
|
|
|
|