From 1254b4391b228c06ecf14416afb8dcf82f0f1b39 Mon Sep 17 00:00:00 2001 From: Tim Jones Date: Mon, 11 Jan 2016 16:50:38 +0100 Subject: [PATCH] Correctly parse dependency YAML dict --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 8e5b78cb556..06e5ffc6ef0 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -213,7 +213,7 @@ class Play(object): role_vars = {} if type(orig_path) == dict: # what, not a path? - role_name = orig_path.get('role', None) + role_name = utils.role_yaml_parse(orig_path)["name"] if role_name is None: raise errors.AnsibleError("expected a role name in dictionary: %s" % orig_path) role_vars = orig_path