{% extends "base.html" %} {% block title %}Ansible Management Dashboard - Server Monitoring{% endblock %} {% block page_title %}Ansible Management Dashboard{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

{{ stats.get('total_devices', 0) }}

Devices

{{ ((playbooks|default([])|length) + (builtin_playbooks|default([])|length)) }}

Playbooks

{{ (executions|default([]))|length }}

Executions

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

Success Rate

Quick Actions

Managed Devices

Configure and manage devices through Ansible
Total Devices

{{ (devices|default([]))|length }}

Online

{{ (devices|default([]) | selectattr('status', 'equalto', 'active') | list | length) }}

Offline

{{ (devices|default([]) | selectattr('status', 'equalto', 'inactive') | list | length) }}

Groups

{{ (device_groups|default([]))|length }}

Device List
{% if devices|default([]) %}
{% for device in devices|default([]) %} {% endfor %}
Name Host Group Status Last Check Actions
{{ device.name }} {{ device.host }} {{ device.group }} {% if device.status == 'active' %} Online {% else %} Offline {% endif %} {{ device.last_check.strftime('%Y-%m-%d %H:%M') if device.last_check else 'Never' }}
{% else %}
No devices configured

Add your first device to start managing infrastructure.

{% endif %}

Playbook Management

Manage and execute Ansible playbooks
Total Playbooks

{{ ((playbooks|default([]))|length + (builtin_playbooks|default([]))|length) }}

Custom

{{ (playbooks|default([]))|length }}

Built-in

{{ (builtin_playbooks|default([]))|length }}

Recent Runs

{{ (executions|default([]))|length }}

{% if (builtin_playbooks|default([])) or (playbooks|default([])) %} {% for playbook in (builtin_playbooks|default([])) + (playbooks|default([])) %}
{{ playbook.name }}

{{ playbook.description | default('No description available') }}

{% if playbook.type == 'builtin' %} Built-in {% else %} Custom {% endif %}
{% endfor %} {% else %}
No playbooks available

Upload a custom playbook to get started.

{% endif %}

Playbook Execution

Execute playbooks on selected devices
Recent Executions
{% if executions|default([]) %}
{% for execution in (executions|default([]))[:6] %}
{{ execution.playbook_name }}
{{ execution.status | title }}

{{ execution.start_time.strftime('%Y-%m-%d %H:%M:%S') if execution.start_time else 'N/A' }}

{{ execution.successful_hosts or 0 }}
{{ execution.failed_hosts or 0 }}
{{ execution.unreachable_hosts or 0 }}
{% endfor %}
{% else %}
No executions yet

Execute your first playbook to see results here.

{% endif %}
{% endblock %}