ansible/ansible — pull request #5691 by echohead (2014-01-20 23:38:32+00:00)
Title: Make vars plugins honor `hash_behaviour` setting.

When applying precedence ordering of different classes of vars
(hostvars, groupvars, role-defaults, etc.), the hash_behaviour
setting controls whether duplicate hash keys are replaced in
entirety, or merged together.

The wording of the documentation suggests that this setting applies
to all levels of the precedence ordering, when it currently does not:

> Ansible by default will override variables in specific precedence orders,
> as described in Variables. When a variable of higher precedence wins,
> it will replace the other value. ... Some users prefer that variables that
> are hashes (aka ‘dictionaries’ in Python terms) are merged together. This
> setting is called ‘merge’.

This change causes the hash_behavior setting to extend to vars plugins.

Some users prefer that variables that are hashes (aka ‘dictionaries’ in Python terms) are merged together. This setting is called ‘merge’."