Skip to content

Instantly share code, notes, and snippets.

@ddimtirov
Created May 25, 2017 02:14
Show Gist options
  • Select an option

  • Save ddimtirov/1d3f34430b9f3a37a1aae7f98eaf5db2 to your computer and use it in GitHub Desktop.

Select an option

Save ddimtirov/1d3f34430b9f3a37a1aae7f98eaf5db2 to your computer and use it in GitHub Desktop.
Shell snippets
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