add deployment stuff

This commit is contained in:
Riku Rouvila
2015-01-13 23:30:33 +02:00
parent 9a47b9e559
commit fb7b776e87
6 changed files with 102 additions and 1 deletions

18
deploy/deploy.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
export ANSIBLE_SSH_ARGS="-o ForwardAgent=yes"
# Install dependencies
if ! which pip > /dev/null; then
echo "Installing pip (requires sudo password)"
sudo apt-get install python-pip || sudo easy_install pip
fi
if ! which ansible > /dev/null; then
echo "Installing ansible (requires sudo password)"
sudo pip install ansible
fi
cd $(dirname $0)
ansible-playbook deploy.yml -i hosts