Skip to content

Instantly share code, notes, and snippets.

@senorsmile
Created May 14, 2015 20:57
Show Gist options
  • Select an option

  • Save senorsmile/e657b919a9098d2e5baf to your computer and use it in GitHub Desktop.

Select an option

Save senorsmile/e657b919a9098d2e5baf to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
playbook="./site.yml"
hostsfile="./hosts"
## cd to directory of playbook
cd ${0%/*}
time ansible-playbook "$playbook" -i "${hostsfile}" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment