{% extends "base.html" %} {% block title %}Роли - DevOpsLab{% endblock %} {% block page_title %}Роли Ansible{% endblock %} {% block header_actions %} Создать роль {% endblock %} {% block content %}
{% if search %} Сброс {% endif %}
Список ролей
Всего: {{ total }}
{% if roles %}
{% for role in roles %} {% endfor %}
Имя роли Описание Компоненты Платформы Действия
{{ role.name }} {% if role.description %} {{ role.description[:80] }}{% if role.description|length > 80 %}...{% endif %} {% else %} Нет описания {% endif %}
{% if role.has_tasks %} Tasks {% endif %} {% if role.has_defaults %} Defaults {% endif %} {% if role.has_handlers %} Handlers {% endif %} {% if role.has_meta %} Meta {% endif %} {% if not role.has_tasks and not role.has_defaults and not role.has_handlers and not role.has_meta %} Пустая роль {% endif %}
{% if role.platforms and role.platforms|length > 0 %}
{% for platform in role.platforms[:4] %} {{ platform.name }} {% endfor %} {% if role.platforms|length > 4 %} +{{ role.platforms|length - 4 }} {% endif %}
{% else %} Не указаны {% endif %}
{% else %}

Роли не найдены

Создать первую роль
{% endif %}
{% if roles and total_pages > 1 %} {% endif %}
{% endblock %}