For example, given "val1: foo"
- set_fact:
_var1: |
{"key1": "{{ val1 }}"}
_var2: |
{"key1": "foo"}
- debug:
var: _var1|type_debug
- debug:
var: _var2|type_debuggives _var1|type_debug: dict _var2|type_debug: AnsibleUnicode *_var1* expands to a dictionary but *_var2* expands to a string. Is it a feature or a bug? Thank you, -- Vladimir Botka -- 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/20220105112142.22faded9%40gmail.com.
pgpZ8cYn8jKOs.pgp
Description: OpenPGP digital signature
