file_from_template_options
Build a file from a template (MiniJinja, Jinja2, Mustache).
⚙️ Compatible targets: Linux, Windows
Parameters
Name | Documentation |
---|---|
destination | Destination file (absolute path on the target node). This parameter is required. |
engine | Template engine (defaults to minijinja). Choices:
This parameter is optional. |
data | Data provided to the template, defaults to the global context if empty. This parameter is optional. |
template_string | String containing the template to be rendered. This parameter is optional. |
template_path | Source file containing a template to be rendered (absolute path on the target node). This parameter is optional. |
show_content | Show the file content in the report (defaults to true). Choices:
This parameter is optional. |
Outcome conditions
You need to replace ${destination}
with its actual canonified value.
- ✅ Ok:
file_from_template_options_${destination}_ok
- ☑️ Already compliant:
file_from_template_options_${destination}_kept
- 🟨 Repaired:
file_from_template_options_${destination}_repaired
- ☑️ Already compliant:
- ❌ Error:
file_from_template_options_${destination}_error
Example
method: file_from_template_options
params:
engine: minijinja
template_path: OPTIONAL_VALUE
destination: VALUE
show_content: 'true'
data: OPTIONAL_VALUE
template_string: OPTIONAL_VALUE
Documentation
Coming soon.