{# ansible/index.html — the Runs tab (#5329): a verdict line (how the last 30 days went, failures first, what runs next), a filter bar, then every run newest first as the reader scrolls (ansible/_runs_table.html). #} {% extends "base.html" %} {% from "_macros.html" import page_header %} {% from "ansible/_tabs.html" import ansible_tabs %} {% block title %}Ansible Runs — Steward{% endblock %} {% block section_tabs %}{{ ansible_tabs("runs") }}{% endblock %} {% block content %} {% call page_header("Ansible Runs") %} Run a playbook {% endcall %} {% set v = verdict %}
{%- if not v.total %}No runs in the last {{ v.days }} days {%- elif v.failed %}{{ v.failed }} of {{ v.total }} run{{ 's' if v.total != 1 }} failed in the last {{ v.days }} days {%- if v.latest_failed %} — latest {{ v.latest_failed.title }} {{ v.latest_failed.run.started_at|ago }}{% endif %} {%- else %}{{ v.total }} run{{ 's' if v.total != 1 }} in the last {{ v.days }} days, {{ 'all' if v.total > 1 else 'it' }} succeeded{% endif %} {%- if v.running %} · {{ v.running }} running now{% endif %} {%- if v.next %} · next: {{ v.next.name }} {% if v.next.at %}{{ v.next.at|ago }}{% else %}due now{% endif %}{% endif -%}