Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Append to lists
17 views
Skip to first unread message
Martin Devlin
unread,
May 14, 2014, 4:33:30 PM
5/14/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages