dokuwiki_inventory/templates/start.j2

24 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-10-06 11:14:32 +00:00
====== 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 %}
2020-11-25 09:41:02 +00:00
{% endfor %}
2021-10-06 11:14:32 +00:00
===== Hosts ohne systemd =====
{% for h in hostvars|sort if hostvars[h]['ansible_service_mgr'] is defined and hostvars[h]['ansible_service_mgr'] != 'systemd' %}
2021-10-06 11:14:32 +00:00
* [[ {{ h }} | {{ h }} ({{ hostvars[h]['ansible_service_mgr'] }}) ]]
{% endfor %}