Created
November 9, 2020 07:05
-
-
Save aidmax/b179b6a377ed9dc5199d622de237aeb9 to your computer and use it in GitHub Desktop.
Adds log output to file for ansible
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
#!/bin/sh | |
d=$(date '+%Y.%m.%d_%H%M') | |
export ANSIBLE_LOG_PATH=./ansible-run-$d.log | |
$@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment