{% extends "base.html" %} {% from "_macros.html" import crumbs %} {% block title %}{% if host %}Edit Host{% else %}New Host{% endif %} — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Hosts", "/hosts/"), (("Edit " ~ host.name) if host else "New host", "")]) }}{% endblock %} {% block content %}

{% if host %}Edit Host{% else %}Add Host{% endif %}

Cancel
{% if host and ansible_sources %}

Run Ansible playbook against this host

Runs against an ephemeral one-host inventory for {{ host.name }} ({{ host.address or "no address — resolves by name" }}). Use a playbook with hosts: all.

{% endif %}
{% if host %}

Ansible Target

{% if linked_target %}
{{ linked_target.name }} {{ linked_target.address }} {% if linked_target.groups %}
{% for grp in linked_target.groups %} {{ grp.name }} {% endfor %}
{% endif %}
Edit Target
{% else %}

No Ansible target linked. Link an existing target or create one from this host.

{% if linkable_targets %}
{% endif %}
{% endif %}
{% endif %} {% endblock %}