Merge pull request #1335 from phgrau/devel

Use && for executing next command if, and only if, command1 returns an e...
This commit is contained in:
Michael DeHaan 2012-10-16 15:16:46 -07:00
commit 6f14e35c36
2 changed files with 2 additions and 1 deletions

View file

@ -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::