-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
34 lines (30 loc) · 949 Bytes
/
install.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
30
31
32
33
34
#!/bin/bash
if [ `whoami` != root ]; then
tput setaf 1; echo "Please run this script using sudo"; tput sgr0
exit
else
if [[ "$HOME" == "/root" ]]; then
tput setaf 1; echo "Please run this script using normal user with 'sudo' privilege, not as 'root'"; tput sgr0
fi
fi
INS_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$INS_DIR" ]]; then INS_DIR="$PWD"; fi
sudo apt-get install software-properties-common -y
sudo apt-add-repository ppa:ansible/ansible-2.9 -y
sudo apt update -y
sudo apt upgrade -y
sudo apt install ansible -y
sudo apt install python -y
sudo apt-get install python3-pip -y
sudo apt-get install python-apt -y
sudo apt install unzip -y
sudo apt install net-tools -y
sudo apt install docker.io
sudo pip3 install docker
sudo pip install docker-compose
ansible-playbook angular.yml
ansible-playbook postgres.yml
ansible-playbook node.yml
ansible-playbook nifi.yml
# ansible-playbook nginx.yml
ansible-playbook compose.yml