diff options
author | Michael DeHaan <michael.dehaan@gmail.com> | 2013-04-11 11:17:24 -0700 |
---|---|---|
committer | Michael DeHaan <michael.dehaan@gmail.com> | 2013-04-11 11:17:24 -0700 |
commit | 3e736eaf002bc102df2ae3301e2040659e51bfbe (patch) | |
tree | 0e6c6e362541e5816dc99713dbc8e6c114db8443 /bin | |
parent | 34bacc468c708b67c06754a100ca85f3841b198f (diff) | |
parent | 690738ea32a317ff6de4927d7168ba5053c49a87 (diff) | |
download | ansible-3e736eaf002bc102df2ae3301e2040659e51bfbe.tar.gz |
Merge pull request #2622 from skvidal/playbook-start-at-task
implement --start-at-task option to hop to a specific task before starti...
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible-playbook | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ansible-playbook b/bin/ansible-playbook index f14f6eddd0..7df1a33796 100755 --- a/bin/ansible-playbook +++ b/bin/ansible-playbook @@ -75,6 +75,8 @@ def main(args): help="do list all tasks that would be executed") parser.add_option('--step', dest='step', action='store_true', help="one-step-at-a-time: confirm each task before running") + parser.add_option('--start-at-task', dest='start_at', + help="start the playbook with a task matching this name") options, args = parser.parse_args(args) @@ -116,6 +118,8 @@ def main(args): playbook_cb = callbacks.PlaybookCallbacks(verbose=utils.VERBOSITY) if options.step: playbook_cb.step = options.step + if options.start_at: + playbook_cb.start_at = options.start_at runner_cb = callbacks.PlaybookRunnerCallbacks(stats, verbose=utils.VERBOSITY) pb = ansible.playbook.PlayBook( |