diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index c31a8df67a5..85290cf8a74 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -605,7 +605,7 @@ class Inventory(object): # we do this shouldn't be too much of an issue. Still, this should # be fixed at some point to allow a "first load" to touch all of the # directories, then later runs only touch the new basedir specified - for group in self.groups: + for group in self.groups.values(): #group.vars = combine_vars(group.vars, self.get_group_vars(group, new_pb_basedir=True)) group.vars = combine_vars(group.vars, self.get_group_vars(group)) # get host vars from host_vars/ files