Interview Prep/Ansible/Variables, Facts and Templates

Your template renders `True` in a config that expects `true`.

IntermediateScenarioVariables, Facts and Templates
Answer

Situation read → Python vs JSON/YAML boolean casing.

What I'd do →

enabled: {{ feature_x | bool | lower }}
{{ app_settings | to_nice_json }}

Why → Jinja prints Python's True; to_json, to_nice_yaml or | lower produce the target-format spelling.

Interview tip → Serialise whole structures with to_nice_json rather than hand-assembling braces.

All Ansible questions Roadmap: Ansible

More on Variables, Facts and Templates