generate_config
Renders a Jinja2 template string for each target host to produce configuration without deploying, enabling dry-run audits.
Instructions
Generate configuration from a Jinja2 template string for each target host. Does NOT deploy the configuration; useful for dry-runs and auditing.
Args: template_string: Jinja2 template string. Available variables: {{ host.name }}, {{ host.hostname }}, {{ host.platform }}, {{ host.groups }}, {{ host.data['key'] }}. Other host attributes (e.g. credentials) are not exposed. filter_criteria: Dictionary to filter target hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter_criteria | No | ||
| template_string | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |