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