Remove special-casing for all group

global_vars has higher precedence than inventory. Putting the all
group's variables into it overrides all other groups and hosts.

Partially fixes #1647.
This commit is contained in:
Daniel Hokka Zakrisson 2012-11-23 00:27:56 +01:00
parent bd7e02d629
commit e44b85daba

View file

@ -110,9 +110,6 @@ class PlayBook(object):
self.inventory = ansible.inventory.Inventory(host_list)
self.inventory.subset(subset)
if not self.inventory._is_script:
self.global_vars.update(self.inventory.get_group_variables('all'))
self.basedir = os.path.dirname(playbook)
(self.playbook, self.play_basedirs) = self._load_playbook_from_file(playbook)