diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 6e76cf717bd..9b77c1a35fd 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -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')))