Skip to content

Instantly share code, notes, and snippets.

@vaughany
Last active December 21, 2018 17:50
Show Gist options
  • Save vaughany/23ca93e5642bd1ebf6e335a77cb2d983 to your computer and use it in GitHub Desktop.
Save vaughany/23ca93e5642bd1ebf6e335a77cb2d983 to your computer and use it in GitHub Desktop.
Saving ansible-playbook logs
# Requires: sudo apt install expect
$ unbuffer ansible-playbook debug.yml | tee logs/$(date "+%F_%T.%3N").log
# Will produce a filename like: logs/2018-12-21_17:49:57.771.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment