-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
29 lines (22 loc) · 799 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
set -x # debugging on
set -e # exit if command exits with non-zero status
# Working Directory
working_dir=$(pwd)
## Ansible
# Setup Ansible
sudo apt-get update # need to update on first run
sudo apt-get install -y git python-pip python-dev python-cffi libssl-dev debconf-utils libaio1 aptitude
sudo -H pip install --upgrade pip
sudo -H pip install ansible
# as much as I love cowsay, lets turn it off so Ansible's messages aren't cows
export ANSIBLE_NOCOWS=1
# Clone the Durban 2018 github repo
#git clone https://github.com/SophieS9/durban_2018.git
# hoping this helps with mysql install issues!
export DEBIAN_FRONTEND=noninteractive
# run the base playbook
ansible-playbook /home/ubuntu/durban_2018/base/main.yaml -b -K -c local -i "localhost,"
# turn off
set +x
set +e