diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/executor/play_iterator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py index 642d07d973..2038739f6a 100644 --- a/lib/ansible/executor/play_iterator.py +++ b/lib/ansible/executor/play_iterator.py @@ -132,7 +132,8 @@ class PlayIterator: (s, task) = self.get_next_task_for_host(host, peek=True) if s.run_state == self.ITERATING_COMPLETE: break - if task.name == play_context.start_at_task or fnmatch.fnmatch(task.name, play_context.start_at_task): + if task.name == play_context.start_at_task or fnmatch.fnmatch(task.name, play_context.start_at_task) or \ + task.get_name() == play_context.start_at_task or fnmatch.fnmatch(task.get_name(), play_context.start_at_task): # we have our match, so clear the start_at_task field on the # play context to flag that we've started at a task (and future # plays won't try to advance) |