{% extends "base.html" %} {% from "_macros.html" import crumbs %} {% block title %}Host Agent — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Host Agents", "/plugins/host_agent/"), ("Settings", "")]) }}{% endblock %} {% block content %}

Host Agent — Registered Hosts

{% if new_token %}

New token — copy this install command now

This is the only time the raw token is shown. Rotate if you lose it.

curl -sSL '{{ install_url }}' | sudo sh
{% endif %}
{% if ansible_available %}

Deploy via Ansible

Install (or update) the agent on Ansible inventory hosts in one run — no per-host curl | sh. A fresh token is minted per host and injected into the run; existing agents are rotated to the new token.

{% if not (deploy_targets or deploy_groups) %}

No Ansible inventory targets yet. Add some under Ansible → Browse.

{% else %}
{% endif %}
{% endif %}
{% for item in registrations %} {% else %} {% endfor %}
HostReported IPAgent versionDistro Last seenActions
{{ item.host.name if item.host else item.reg.host_id }} {{ item.reg.host_ip or "—" }} {{ item.reg.agent_version or "—" }} {{ item.reg.distro or "—" }} {{ item.reg.last_seen_at.strftime("%Y-%m-%d %H:%M:%S") if item.reg.last_seen_at else "never" }}
No hosts registered. Add one above.
{% endblock %}