Fix typos in blocks documentation examples. (#41508) (#41524)

(cherry picked from commit a4f49ed648)
This commit is contained in:
Jordan Borean 2018-06-15 04:55:32 +10:00 committed by Matt Davis
parent b4cb0b46e3
commit 20a55c5fdc

View file

@ -50,7 +50,7 @@ Blocks also introduce the ability to handle errors in a way similar to exception
tasks:
- name: Attempt and gracefull roll back demo
- name: Attempt and graceful roll back demo
block:
- debug:
msg: 'I execute normally'
@ -65,7 +65,7 @@ Blocks also introduce the ability to handle errors in a way similar to exception
msg: 'I also never execute :-('
always:
- debug:
msg: "this always executes"
msg: "This always executes"
The tasks in the ``block`` would execute normally, if there is any error the ``rescue`` section would get executed
with whatever you need to do to recover from the previous error. The ``always`` section runs no matter what previous
@ -81,7 +81,7 @@ Another example is how to run handlers after an error occurred :
tasks:
- name: Attempt and gracefull roll back demo
- name: Attempt and graceful roll back demo
block:
- debug:
msg: 'I execute normally'
@ -93,7 +93,7 @@ Another example is how to run handlers after an error occurred :
handlers:
- name: run me even after an error
debug:
msg: 'this handler runs even on error'
msg: 'This handler runs even on error'
.. seealso::