{% 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 %}