Last active
December 21, 2018 17:50
-
-
Save vaughany/23ca93e5642bd1ebf6e335a77cb2d983 to your computer and use it in GitHub Desktop.
Saving ansible-playbook logs
This file contains hidden or 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
# 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