Dear list,
please consider this playbook:
- name: test playbook
hosts: localhost
gather_facts: no
vars:
mylist:
- 1
- 2
- 3
othervar: '{{mylist}}'
escaped: \{{mylist}}
tasks:
- debug: msg='{{mylist.__class__}} {{othervar.__class__}} {{escaped.__class__}}'
The output is (list, unicode, unicode), which is rather unfortunate.
How do I preserve the type of a variable when interpolating like
above?