mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-02-21 20:55:28 +00:00
initial commit
This commit is contained in:
18
deploy/deploy.sh
Normal file
18
deploy/deploy.sh
Normal 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
|
||||
Reference in New Issue
Block a user