From http://docs.ansible.com/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable
If multiple variables of the same name are defined in different places, they win in a certain order, which is:
* -e variables always win * then comes "most everything else" * then comes variables defined in inventory * then comes facts discovered about a system * then "role defaults", which are the most "defaulty" and lose in priority to everything.
But when I define a variable both in play and in the inventory, the value from the inventory is used.
Bug / docs not up to date / I’m missing something?