diff options
author | James Cammarata <jimi@sngx.net> | 2015-10-27 16:30:56 -0400 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-10-27 16:31:23 -0400 |
commit | 87269599a0c5e3457ff6df58dd75245f60f545b6 (patch) | |
tree | cabce836b5e9097ca06110d6c612f1bc6f23e8b9 /lib | |
parent | 1910f2314438d954d3ba7bc829e9940216d7e51a (diff) | |
download | ansible-87269599a0c5e3457ff6df58dd75245f60f545b6.tar.gz |
Also consider the full role name when searching for --start-at-task
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) |