{% extends "layout.html" %} {% macro display_result(result, hdr) %} {% if result is mapping %} {% if 'item' in result %} <{{ hdr }}>Item
{{ result.item |to_nice_json |safe }}
{% endif %} {% for attr in result.keys()|sort if attr not in ['item', 'changed', 'stdout_lines'] %} {% if result[attr]|default(False) %} <{{ hdr }}>{{ attr|title }} {% if result[attr] is string %}
{{ result[attr] }}
{% elif result[attr] is mapping or result[attr] is iterable%}
{{ result[attr] |to_nice_json |safe }}
{% else %}
{{ result |to_nice_json |safe }}
{% endif %} {% endif %} {% endfor %} {% else %}
{{ result |to_nice_json |safe }}
{% endif %} {% endmacro %} {% block content %}

Task result details

{{ task_result.time_start |datefmt }} {{ task_result.time_end |datefmt }}

{% if task_result.task.file %}

{{ macros.make_link('file.show_file', task_result.task.file.path |pathtruncate(15), file_=task_result.task.file.id) }} File

{{ macros.make_link('file.show_file', task_result.task.lineno, file_=task_result.task.file.id, _anchor="line-" ~ task_result.task.lineno) }} File line

{% endif %}

{{ task_result.task.action }} Action

{{ task_result.duration |timefmt }} Duration

Task result information

{% set result = task_result.result|from_json %} {% if 'results' in result %} {% for item in result.results %}

Result {{loop.index}}

{{ display_result(item, 'h3') }} {% endfor %} {% else %} {{ display_result(result, 'h2') }} {% endif %}
{% endblock %}