{% extends "layout.html" %} {% macro display_result(result, hdr) %} {% if result is mapping %} {% if 'item' in result %} <{{hdr}}>Item
{{result.item|to_nice_json}}
{% 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}}
{% else %}
{{result}}
{% endif %} {% endif %} {% endfor %} {% else %}
{{result|to_nice_json}}
{% endif %} {% endmacro %} {% block content %}

Task result information

Start End Duration Action File Line
{{ task_result.time_start |datefmt }} {{ task_result.time_end |datefmt }} {{ task_result.duration |timefmt }} {{ task_result.task.action }} {{ task_result.task.path|pathtruncate }} {{ task_result.task.lineno }}
{% 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 %}