-
-
-
{% set ns = namespace(total=0) %}
{% for g in inventory.groups.values() %}{% set ns.total = ns.total + g.hosts|length %}{% endfor %}
{% if ns.total > 0 %}
Will run on all {{ ns.total }} host(s)
across {{ inventory.groups|length }} group(s).
{% else %}
{% endif %}
{% if inventory.groups %}
{% for group_name, group in inventory.groups.items() %}
{% endfor %}
{% else %}
No groups in inventory.
{% endif %}
{% if all_inv_hosts %}
{% for h in all_inv_hosts %}
{% endfor %}
{% else %}
No hosts in inventory yet.
{% endif %}