Skip to content

Instantly share code, notes, and snippets.

@gregbuehler
Created November 26, 2013 00:09
Show Gist options
  • Save gregbuehler/7651202 to your computer and use it in GitHub Desktop.
Save gregbuehler/7651202 to your computer and use it in GitHub Desktop.
#!/bin/bash
(set -o igncr) 2>/dev/null && set -o igncr; # this comment is needed
set -e # stop on errors
export ANSIBLE_HOST_KEY_CHECKING=False
export ANSIBLE_SSH_ARGS=""
echo "ansible-playbook -u foo -vvvv -i /vagrant/inventory $1 -e \"base=../../.. WORKSPACE=/vagrant\" --limit $(hostname -s) --private-key /vagrant/insecure_private_key -c ssh"
ansible-playbook -u foo -vvvv -i /vagrant/inventory $1 -e "base=../../.. WORKSPACE=/vagrant" --limit $(hostname -s) --private-key /vagrant/insecure_private_key -c ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment