Docs: Code-block wrapping for playbooks_startnstep.rst #75934 (#75943)

* Code-block wrapping for playbooks_startnstep.rst #75934
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/76012/head
Tamas Szabo 3 years ago committed by GitHub
parent 5c4bbed2de
commit 22a540e109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,9 @@ When you are testing new plays or debugging playbooks, you may need to run the s
start-at-task
-------------
To start executing your playbook at a particular task (usually the task that failed on the previous run), use the ``--start-at-task`` option::
To start executing your playbook at a particular task (usually the task that failed on the previous run), use the ``--start-at-task`` option.
.. code-block:: shell
ansible-playbook playbook.yml --start-at-task="install packages"
@ -22,11 +24,15 @@ In this example, Ansible starts executing your playbook at a task named "install
Step mode
---------
To execute a playbook interactively, use ``--step``::
To execute a playbook interactively, use ``--step``.
.. code-block:: shell
ansible-playbook playbook.yml --step
With this option, Ansible stops on each task, and asks if it should execute that task. For example, if you have a task called "configure ssh", the playbook run will stop and ask::
With this option, Ansible stops on each task, and asks if it should execute that task. For example, if you have a task called "configure ssh", the playbook run will stop and ask.
.. code-block:: shell
Perform task: configure ssh (y/n/c):

Loading…
Cancel
Save