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
If you need the merged dictionary a few times, you can set it to a new "variable":
- set_fact: _my_values="{{ my_default_values|combine(my_values) }}" - debug: msg="{{ item.key }} = {{ item.value }}" with_dict: _my_values