Commit f9890c99 by Michael DeHaan

Show other way to ignore command/shell errors

parent bccab0f2
...@@ -222,6 +222,14 @@ who's successful exit code is not zero, you may wish to do this:: ...@@ -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 - name: run this command and ignore the result
action: shell /usr/bin/somecommand || /bin/true 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 If the action line is getting too long for comfort you can break it on
a space and indent any continuation lines:: a space and indent any continuation lines::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment