{# Description + discovered variable fields for a selected playbook. Shared by the browse run form, host run form, and schedule form. Expects `variables` and `description`. Rendered standalone by /ansible/playbook-vars. Optional: `values` (dict var-name→saved value, prefills fields for edit forms) and `schedule` (True in the schedule form — schedules can't prompt, so secret vars are shown disabled and the confirm gate isn't `required`). #} {% set _values = values|default({}) %} {% set _schedule = schedule|default(false) %} {% if description or category %}
{% if category %}{{ category }}{% endif %} {{ description }}
{% endif %} {% if confirm %} {% endif %} {% if variables %}
Playbook variables

Leave a field blank to use the playbook/inventory default. Secret fields are never stored.

{% for v in variables %}
{% if v.secret and _schedule %} {# Scheduled runs can't prompt, so secret vars are dropped downstream — show the field disabled rather than inviting silent data loss. #} {% else %} {% if v.secret %}{% endif %} {% endif %}
{% endfor %} {% else %}

No declared variables found in this playbook.

{% endif %}