Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
9245acbf
Commit
9245acbf
authored
Nov 17, 2014
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9564 from bcoca/start_step_docs
Start step docs
parents
2c520655
d1e80ea1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
19 deletions
+35
-19
docsite/rst/playbooks_intro.rst
+0
-19
docsite/rst/playbooks_special_topics.rst
+1
-0
docsite/rst/playbooks_startnstep.rst
+34
-0
No files found.
docsite/rst/playbooks_intro.rst
View file @
9245acbf
...
@@ -335,25 +335,6 @@ Let's run a playbook using a parallelism level of 10::
...
@@ -335,25 +335,6 @@ Let's run a playbook using a parallelism level of 10::
ansible
-
playbook
playbook
.
yml
-
f
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
:
Ansible
-
Pull
Ansible
-
Pull
...
...
docsite/rst/playbooks_special_topics.rst
View file @
9245acbf
...
@@ -17,3 +17,4 @@ and adopt these only if they seem relevant or useful to your environment.
...
@@ -17,3 +17,4 @@ and adopt these only if they seem relevant or useful to your environment.
playbooks_prompts
playbooks_prompts
playbooks_tags
playbooks_tags
playbooks_vault
playbooks_vault
playbooks_startnstep
docsite/rst/playbooks_startnstep.rst
0 → 100644
View file @
9245acbf
Start and Step
======================
This shows a few alternative ways to run playbooks. These modes are very useful for testing new plays or debugging.
.. _start_at_task
Start-at-task
`````````````
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".
.. _step
Step
````
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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment