{% extends "base.html" %} {% block title %}Роли - DevOpsLab{% endblock %} {% block page_title %}Роли Ansible{% endblock %} {% block header_actions %} Создать роль {% endblock %} {% block content %}
| Имя роли | Описание | Компоненты | Платформы | Действия |
|---|---|---|---|---|
| {{ 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 %}
|
Роли не найдены
Создать первую роль