{# ansible/inventory/target_detail.html — one target (#5333): what it is (its address, the Steward host it is linked to, its groups, 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 %}{{ target.name }} — Inventory — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Ansible", "/ansible/"), ("Inventory", "/ansible/inventory/"), (target.name, "")]) }}{% endblock %} {% block section_tabs %}{{ ansible_tabs("inventory") }}{% endblock %} {% block content %} {% set can_edit = session.user_role in ('operator', 'admin') %} {{ page_header(target.name) }}
{{ target.address }} · {% if host %}Steward host {{ host.name }}{% else %}not linked to a Steward host{% endif %} · {% if target.groups %}in {% for g in target.groups|sort(attribute='name') %}{{ g.name }}{{ ", " if not loop.last }}{% endfor %}{% else %}in no group{% endif %} {%- if used %} · scheduled by {% for s in used %}{{ s.name }}{{ ", " if not loop.last }}{% endfor %}{% endif %}
{% if not host %}A target is linked from its host's page, in the Ansible section.
{% endif %} {% if can_edit %}{% if used %}{{ used|length }} schedule{{ 's' if used|length != 1 }} run{{ 's' if used|length == 1 }} on it alone and would find nothing to run on.{% else %}It leaves its groups; its past runs stay in the Runs list.{% endif %}