I have this dictionary
env2:
a: 20
b: 50
d: 90
Now i have this template file
name: "test"
env: "{{ env2 | to_nice_yaml(indent=8) }}"
When i run the playbook i get output as
env: "a: 20
b: 50
d: 90
"
how can i get output as
env:
a: 20
b: 50
d: 90