Created
May 25, 2017 02:14
-
-
Save ddimtirov/1d3f34430b9f3a37a1aae7f98eaf5db2 to your computer and use it in GitHub Desktop.
Shell snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! out=`ansible-playbook yourplaybook.yaml`; then echo $out; fi | |
( ( do_something ; do_something_else ) > /dev/null ) 2>&1 | sed 's/^/doing_something: /g' >> /.../logs/cronerr.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment