ad726e65f3
Stop making operators type playbook paths and guess extra-var names. - Reusable infra: shared ansible/_playbook_vars.html (the discovered-variable fields) + ansible/_playbook_options.html; two HTMX endpoints — /ansible/playbook-options (a source's playbooks, optional ?selected for edit) and /ansible/playbook-vars (a playbook's vars:/vars_prompt: as fill-in fields). browse _run_form.html refactored to include the shared partial. - Host "Run a playbook against this host": source dropdown → playbook dropdown → variable fields, all chained via HTMX. Handler reuses _parse_run_params so var__/secret__ fields flow through extra_vars_map + the unpersisted secret_vars channel. - Schedules: playbook free-text+datalist → source-dependent dropdown; fixed the extra-vars edit pre-fill to read extra_vars_map (stale list key after the earlier JSON-extra-vars change). Scribe #895. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7 lines
332 B
HTML
7 lines
332 B
HTML
{# <option> list for a playbook <select>, populated when a source is chosen.
|
|
Returned by /ansible/playbook-options. `selected` pre-selects one (edit). #}
|
|
<option value="">— choose playbook —</option>
|
|
{% for pb in playbooks %}
|
|
<option value="{{ pb }}" {% if pb == selected %}selected{% endif %}>{{ pb }}</option>
|
|
{% endfor %}
|