Ensure duplicate roles are not loaded in the case of a missing meta/main.yml file.

This commit is contained in:
smoothify 2013-09-04 12:38:42 +01:00
parent 4eedfa46a2
commit 0411ea2867

View file

@ -194,6 +194,8 @@ class Play(object):
continue
else:
self.included_roles.append(dep)
else:
continue
dep_vars = utils.combine_vars(passed_vars, dep_vars)
dep_vars = utils.combine_vars(role_vars, dep_vars)
vars = self._resolve_main(utils.path_dwim(self.basedir, os.path.join(dep_path, 'vars')))