Found it:

default.yml:

boolean_test: !!str true




Neil Young schrieb am Montag, 8. November 2021 um 15:21:55 UTC+1:

> I'm not entirely sure if this is a YAML problem or an Ansible thing.
>
> Trying to render a configuration json file from a j2 template.
>
> Template.j2
>
> {
>   "test": {{ boolean_test }}
> }
>
> default.yml:
>
> boolean_test: true
>
> Result:
>
> {
>   "test": True
> }
>
> The result makes my node app complain (invalid json)
>
> How to render 
>
> {
>   "test": true
> }
>
> ?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b57ee1e0-b80d-4f9e-9cfb-fda1bfdc954bn%40googlegroups.com.

Reply via email to