Hi,
Seems I am missing something really simple.
ldap_data: |
{% set ldapdata = {} -%}
{% if ldap_content is defined -%}
{{ ldapdata | combine({'a':10}, recursive='True') }}
{%- endif -%}
{{ldapdata}}
populates ldap_data with value:
"ldap_data": "{'a': 10}*{}\*n"
Dont understand why this last {} appears in output ?
Thanks
Punit
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAFXWBQKEmjsQ3PNz-hG5QrqfNCKepooe0rA2tsc_ijT%3D8Taevw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.