Skip to content

Instantly share code, notes, and snippets.

@jimi-c
Created August 17, 2013 05:04
Show Gist options
  • Save jimi-c/6255363 to your computer and use it in GitHub Desktop.
Save jimi-c/6255363 to your computer and use it in GitHub Desktop.
diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py
index 934e5d6..03216fe 100644
--- a/lib/ansible/playbook/play.py
+++ b/lib/ansible/playbook/play.py
@@ -177,10 +177,10 @@ class Play(object):
del dep_vars['role']
self._build_role_dependencies([dep], dep_stack, passed_vars=dep_vars, level=level+1)
dep_stack.append([dep,dep_path,dep_vars])
- # only add the current role when we're at the top level,
- # otherwise we'll end up in a recursive loop
- if level == 0:
- dep_stack.append([role,role_path,role_vars])
+ # only add the current role when we're at the top level,
+ # otherwise we'll end up in a recursive loop
+ if level == 0:
+ dep_stack.append([role,role_path,role_vars])
return dep_stack
def _load_roles(self, roles, ds):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment