{% extends "base.html" %} {% block title %}Execution History - Server Monitoring{% endblock %} {% block page_title %}Ansible Execution History{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Ansible Execution History

Track and monitor all playbook executions

{{ executions|length }}

Total Executions

{{ executions|selectattr('status', 'equalto', 'completed')|list|length }}

Completed

{{ executions|selectattr('status', 'equalto', 'running')|list|length }}

Running

{{ executions|selectattr('status', 'equalto', 'failed')|list|length }}

Failed

{% if executions %} {% for execution in executions %}
{{ execution.playbook_name }} {% if execution.status == 'running' %} {% endif %}
Execution ID: {{ execution.execution_id }}
{{ execution.status|title }} {% if execution.priority and execution.priority != 5 %} Priority: {{ execution.priority }} {% endif %}
Execution Details
Started:
{{ execution.started_at | local_dt if execution.started_at else 'Queued' }}
Duration:
{% if execution.duration %} {{ execution.duration_formatted }} {% elif execution.status == 'running' and execution.started_at %} Calculating... {% else %} - {% endif %}
User:
{{ execution.execution_user or 'System' }}
Target Hosts:
{{ execution.total_hosts or 0 }}
{% if execution.status in ['completed', 'failed'] %}
Results Summary
{% if execution.successful_hosts > 0 %} ✓ {{ execution.successful_hosts }} successful {% endif %} {% if execution.failed_hosts > 0 %} ✗ {{ execution.failed_hosts }} failed {% endif %} {% if execution.unreachable_hosts > 0 %} ⚠ {{ execution.unreachable_hosts }} unreachable {% endif %} {% if execution.skipped_hosts > 0 %} ⊝ {{ execution.skipped_hosts }} skipped {% endif %}
{% if execution.summary_message %} {{ execution.summary_message }} {% endif %}
{% elif execution.status == 'running' %}
In Progress
Execution is currently running...
{% else %}
Queued
{% if execution.queue_position > 0 %}

Position in queue: {{ execution.queue_position }}

{% endif %} Waiting for execution...
{% endif %}
View Details {% if execution.status == 'running' %} {% elif execution.status == 'failed' and execution.retry_count < execution.max_retries %} {% endif %} {% if execution.ansible_log_file %} Download Log {% endif %}
{% endfor %} {% else %}
No Executions Found

No playbook executions have been run yet.

Run Your First Playbook
{% endif %}
{% endblock %}