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/ce7881d5-62b8-4bd9-aa34-e3227a789fden%40googlegroups.com.

Reply via email to