{% include "head.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 -%} {% elif result is iterable and result is not string %} {% for item in result -%} {% set item = item|from_json %}
{{ result |to_nice_json |safe }}{% endif -%} {% endmacro %}
Time: {{ task_result.time_start |datefmt }}
Ansible version: {{ task_result.task.playbook.ansible_version }}
{% set result = task_result.result|from_json %} {% if 'results' in result -%} {% for item in result.results -%}