{% extends 'base.html' %} {% load static %} {% load i18n %} {% block custom_head_css_js %} {% endblock %} {% block content %}
{{ object.task.name }}: {{ object.short_id }}
{% if object.run_as_admin %} {% else %} {% endif %}
{% trans 'ID' %}: {{ object.id }}
{% trans 'Hosts' %}: {{ object.hosts | length }}
{% trans 'Pattern' %}: {{ object.pattern }}
{% trans 'Options' %} {% for k, v in object.options.items %} {{ k }} = {{ v }}
{% endfor %}
{% trans 'Run as' %} Admin
{% trans 'Run as' %}: {{ object.get_latest_history.date_start }}
{% trans 'Become' %} {{ object.become.user }}
{% trans 'Created by' %} {{ object.created_by }}
{% trans 'Date created' %}: {{ object.date_created }}
{% trans 'Run times' %}: {{ object.history.all | length }}
{% trans 'Last run' %}: {{ object.latest_history.short_id }}
{% trans 'Time delta' %}: {{ object.latest_history.timedelta|floatformat}} s
{% trans 'Is finished' %}: {{ object.latest_history.is_finished|yesno:"Yes,No,Unkown" }}
{% trans 'Is success ' %}: {{ object.latest_history.is_success|yesno:"Yes,No,Unkown" }}
{% trans 'Tasks' %}: {% for task in object.tasks %} {{ forloop.counter }}. {{ task.name }} ::: {{ task.action.module }}
{% endfor %}
{% trans 'Last run failed hosts' %}
{% for host, task in object.latest_history.failed_hosts.items %} {% if forloop.first %} {% else %} {% endif %} {% empty %} {% endfor %}
{{ host }}: {% for name, result in task.items %} {{ name }} => {{ result.msg }} {% endfor %}
{% trans 'No hosts' %}
{% trans 'Last run success hosts' %}
{% for host in object.latest_history.success_hosts %} {% if forloop.first %} {% else %} {% endif %} {% empty %} {% endfor %}
{{ host }}
{% trans 'No hosts' %}
{% include 'users/_user_update_pk_modal.html' %} {% endblock %}