-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovision.sh
More file actions
27 lines (20 loc) · 776 Bytes
/
provision.sh
File metadata and controls
27 lines (20 loc) · 776 Bytes
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
#!/bin/sh
##### INFO #####
# provision.sh
#
# This script will start provision a clean Ubuntu 16.04 LTS 64bit Vagrant box
# using ansible to be used for Factory Development
#
# Author: Arradi Nur Rizal
#============================= Preconfiguration ================================
export DEBIAN_FRONTEND=noninteractive
#============================= Installing ansible ===================================
if [ ! -f /usr/bin/ansible-playbook ]
then
apt-get install software-properties-common
apt-add-repository ppa:ansible/ansible
apt-get update
apt-get install -y ansible
fi
#============================= Running ansible playbook ===================================
ansible-playbook --inventory="localhost," -c local /provision/ansible/main.yml