initial commit

This commit is contained in:
Riku Rouvila
2015-01-14 18:14:37 +02:00
commit d9421f9996
13 changed files with 203 additions and 0 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