summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-03-29 21:38:33 -0400
committerMichael DeHaan <michael@ansibleworks.com>2013-03-29 21:38:33 -0400
commitf9890c99732cded2186c3bf493c95d1ffa5cf5f3 (patch)
treef41eb17452d1b63e595d930c19208efef13c92b6
parentbccab0f2b7789401d8683b6ad04e9b9a26b09812 (diff)
downloadansible-f9890c99732cded2186c3bf493c95d1ffa5cf5f3.tar.gz
Show other way to ignore command/shell errors
-rw-r--r--docsite/rst/playbooks.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docsite/rst/playbooks.rst b/docsite/rst/playbooks.rst
index 0e3dc36edb..fe847ba954 100644
--- a/docsite/rst/playbooks.rst
+++ b/docsite/rst/playbooks.rst
@@ -222,6 +222,14 @@ who's successful exit code is not zero, you may wish to do this::
- name: run this command and ignore the result
action: shell /usr/bin/somecommand || /bin/true
+Or this::
+
+ tasks:
+ - name: run this command and ignore the result
+ action: shell /usr/bin/somecommand
+ ignore_errors: True
+
+
If the action line is getting too long for comfort you can break it on
a space and indent any continuation lines::