Skip to content

Instantly share code, notes, and snippets.

@aidmax
Created November 9, 2020 07:05
Show Gist options
  • Save aidmax/b179b6a377ed9dc5199d622de237aeb9 to your computer and use it in GitHub Desktop.
Save aidmax/b179b6a377ed9dc5199d622de237aeb9 to your computer and use it in GitHub Desktop.
Adds log output to file for ansible
#!/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