Hi All,
I’m using ansible 1.9.3, and want to merge two nested dicts to template to a config file. I’ve written a combine function similar to whats in 2.n.n. The problem is that the merged dictionary appears to be unicode preventing me from iterating over it in the template. This is the combine function:
`
def combine(original, update):
for key, value in original.items():
if not key in update:
update[key] = value
elif isinstance(value, dict):
combine(value, update[key])
return update
class FilterModule(object):
def filters(self):
return {
‘combine’: combine,
}
`
My testcase is this.
`