{# ansible/inventory/group_detail.html โ one group (#5333): its members and the schedules aimed at it, its form (operators), and at the foot Delete behind the confirm dialog. #} {% extends "base.html" %} {% from "_macros.html" import crumbs, page_header %} {% from "ansible/_tabs.html" import ansible_tabs %} {% block title %}{{ group.name }} โ Inventory โ Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Ansible", "/ansible/"), ("Inventory", "/ansible/inventory/"), (group.name, "")]) }}{% endblock %} {% block content %} {% set can_edit = session.user_role in ('operator', 'admin') %} {{ ansible_tabs("inventory") }} {{ page_header(group.name) }}
{%- set members = group.targets|sort(attribute='name') %} {%- if members %}{{ members|length }} member{{ 's' if members|length != 1 }}: {% for t in members %}{{ t.name }}{{ ", " if not loop.last }}{% endfor %} {%- else %}no members{% endif %} {%- if used %} ยท scheduled by {% for s in used %}{{ s.name }}{{ ", " if not loop.last }}{% endfor %}{% endif %}
{% if can_edit %}{% if used %}{{ used|length }} schedule{{ 's' if used|length != 1 }} run{{ 's' if used|length == 1 }} on it and would find nothing to run on.{% else %}Its targets stay; only the grouping goes.{% endif %}