From 40886c42b512ab1668dba9abeee58b0d6d059f34 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Fri, 25 Oct 2013 16:09:43 -0400 Subject: [PATCH] Fixes #4561 Compare task name without role prefix for start-at-task --- lib/ansible/callbacks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 0ab0db1dd6a..b534d2b9dcf 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -595,6 +595,11 @@ class PlaybookCallbacks(object): if name == self.start_at or fnmatch.fnmatch(name, self.start_at): # we found out match, we can get rid of this now del self.start_at + elif self.task.role_name: + # handle tasks prefixed with rolenames + actual_name = name.split('|', 1)[1].lstrip() + if actual_name == self.start_at or fnmatch.fnmatch(actual_name, self.start_at): + del self.start_at if hasattr(self, 'start_at'): # we still have start_at so skip the task self.skip_task = True