That in particular, I'd think no.
What I'd really like might look something like
environment: "{{ dict1 | update(dict2) }}"
Anybody done anything like that with stock Jinja2-voodoo magic? If not,
it's about a two liner in filter_plugins/core.py to expose the native hash
update function.
On Thu, Jul 31, 2014 at 8:00 PM, Steven Ringo <[email protected]>
wrote:
> I thought it might be possible to loop over each hash respectively and
> then create a new one with all of those.
>
>
>
> On Friday, 1 August 2014 09:56:39 UTC+10, Michael DeHaan wrote:
>
>> I think this might be proposing something like a jinja2 filter that
>> merges one hash with another and returns it.
>>
>> I'm not aware of this, but some other folks go deeper than me.
>>
>> I'm not opposed to a filter plugin function being added that does this
>> being added if that makes sense.
>>
>>
>>
>>
>> On Thu, Jul 31, 2014 at 7:24 PM, Steven Ringo <[email protected]>
>> wrote:
>>
>>> To add: would prefer not to use hash_behaviour = merge if possible.
>>>
>>>
>>> --
>>> 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/f2468b4d-0e07-401e-8f95-
>>> fe40405d4fc7%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/f2468b4d-0e07-401e-8f95-fe40405d4fc7%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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/c901cda8-bcf5-4e15-a576-73adeb965e1e%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/c901cda8-bcf5-4e15-a576-73adeb965e1e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CA%2BnsWgyhZ5KZy3230ibMP3k0M8RBAZu1MfecGE4ATQDEKnY4PQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.