Created
August 6, 2014 15:36
-
-
Save ajmazurie/263123723d3be803c73b to your computer and use it in GitHub Desktop.
Very simple bash script wrapping ansible-playbook to deploy a playbook locally
This file contains 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/bash | |
inventory_fn=$(mktemp -t $(basename $0)) | |
echo "localhost ansible_connection=local" > ${inventory_fn} | |
ansible-playbook -i ${inventory_fn} $@ | |
rm ${inventory_fn} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment