====== Alle Hosts ====== ^ 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 %} {% endfor %} ===== Hosts ohne systemd ===== {% for h in hostvars|sort if hostvars[h]['ansible_service_mgr'] is defined and hostvars[h]['ansible_service_mgr'] != 'systemd' %} * [[ {{ h }} | {{ h }} ({{ hostvars[h]['ansible_service_mgr'] }}) ]] {% endfor %}