# Combine dictionaries based on a dictionary key value.

**URL:** <https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33279>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [June 30, 2020, 6:47am UTC](https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33279 "2020-06-30T06:47:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbotka](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/vbotka/32/359_2.png) [@vbotka](https://forum.ansible.com/u/vbotka)\
**Post date:** [June 30, 2020, 6:47am UTC](https://forum.ansible.com/t/combine-dictionaries-based-on-a-dictionary-key-value/33279/1 "2020-06-30T06:47:00Z")

</div>

The values of "node\_name" does not correspond. It would be good to test it.  
For example

&nbsp;&nbsp;&nbsp;&nbsp;- fail:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg: Values of node\_name(s) do not fit  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;when: aggregate\_info|map(attribute='node\_name')|list|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;difference(net\_interface|map(attribute='node\_name')|list)
