Commit 9b15b5d5 by Philipp Grau

Use && for executing next command if, and only if, command1 returns an exit status of zero.

parent 036f853d
......@@ -212,7 +212,7 @@ who's successful exit code is not zero, you may wish to do this::
tasks:
- name: run this command and ignore the result
action: shell /usr/bin/somecommand & /bin/true
action: shell /usr/bin/somecommand && /bin/true
Variables can be used in action lines. Suppose you defined
a variable called 'vhost' in the 'vars' section, you could do this::
......
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