merging dictionaries in ansible


I’m currently building a role for installing PHP using ansible, and I’m having some difficulty merging dictionaries. I’ve tried several ways to do so, but I can’t get it to work like I want it to:

Is there a way to merge two dictionaries, so I can use it with “with_dict”?


In Ansible 2.0, there is a Jinja filter, combine, for this:

Leave a Reply