From f9890c99732cded2186c3bf493c95d1ffa5cf5f3 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 29 Mar 2013 21:38:33 -0400 Subject: [PATCH] Show other way to ignore command/shell errors --- docsite/rst/playbooks.rst | 8 ++++++++ 1 file changed, 8 insertions(+) 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::