# Append to lists

**URL:** <https://forum.ansible.com/t/append-to-lists/15237>\
**Category:** Ansible Project\
**Created:** [May 14, 2014, 8:33pm UTC](https://forum.ansible.com/t/append-to-lists/15237 "2014-05-14T20:33:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Devlin](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@Martin\_Devlin](https://forum.ansible.com/u/Martin_Devlin)\
**Post date:** [May 14, 2014, 8:33pm UTC](https://forum.ansible.com/t/append-to-lists/15237/1 "2014-05-14T20:33:30Z")

</div>

Why can’t I append to a list of the same name depending on what groups a node is in?

For example:

group\_vars/chocolate contains:

sauces:

- name : chocolate  
value : yummy

group\_vars/strawberry contains:

sauces:

- name : strawberry  
value : even\_yummier

If a node is in both groups I can’t iterate over the sauces list and get both values. This is also the case with hash\_behaviour = merge.

What am I doing wrong?
