I have this Ansible playbook:
vars:
a: "key"
b: "value"
something:
"{{ a }}": "{{ b }}"
tasks:
- name: debug
debug:
msg: "{{ something | to_nice_yaml }}"
The output is:
ok: [localhost] => {
"msg": "'{{ a }}': value\n"
}
How do I make this be key: value
instead of {{ a }}: value
?