diff options
| author | Brian Coca <bcoca@ansible.com> | 2014-11-14 21:49:24 -0500 |
|---|---|---|
| committer | Brian Coca <bcoca@ansible.com> | 2014-11-14 21:49:24 -0500 |
| commit | 4caed6d450e8e360f298ef953d9918ec9e47419d (patch) | |
| tree | 63392bd9a6beb71cf998ae4422bdc5c415f331e0 /docsite | |
| parent | c3c6a07e6524f8f489659d021f95f1a2be7aa663 (diff) | |
| parent | 1d05be82f004f28e76df39d46bad1a2aa899ef89 (diff) | |
| download | ansible-4caed6d450e8e360f298ef953d9918ec9e47419d.tar.gz | |
Merge pull request #9266 from sjahl/step-start-docs
Documents the --step and --start-at options to ansible-playbook.
Diffstat (limited to 'docsite')
| -rw-r--r-- | docsite/rst/playbooks_intro.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docsite/rst/playbooks_intro.rst b/docsite/rst/playbooks_intro.rst index 4bc3bccf2d..cc55f28261 100644 --- a/docsite/rst/playbooks_intro.rst +++ b/docsite/rst/playbooks_intro.rst @@ -335,6 +335,25 @@ Let's run a playbook using a parallelism level of 10:: ansible-playbook playbook.yml -f 10 +Playbooks can also be executed interactively with ``--step``:: + + ansible-playbook playbook.yml --step + +This will cause ansible to stop on each task, and ask if it should execute that task. +Say you had a task called "configure ssh", the playbook run will stop and ask:: + + Perform task: configure ssh (y/n/c): + +Answering "y" will execute the task, answering "n" will skip the task, and answering "c" +will continue executing all the remaining tasks without asking. + +If you want to start executing your playbook at a particular task, you can do so +with the ``--start-at`` option:: + + ansible-playbook playbook.yml --start-at="install packages" + +The above will start executing your playbook at a task named "install packages". + .. _ansible-pull: Ansible-Pull |
