-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
38 lines (30 loc) · 1.48 KB
/
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
35
36
37
38
#!/bin/bash
echo "-------------------------------------------------------------------------------"
echo "Updating System"
sudo apt update
sudo apt upgrade --yes
sudo apt dist-upgrade --yes
sudo apt install gcc make perl build-essential linux-headers-`uname -r` dkms
echo "-------------------------------------------------------------------------------"
echo "Add Ansible Official PPA"
sudo add-apt-repository --yes --update ppa:ansible/ansible
echo "-------------------------------------------------------------------------------"
echo "Installing GIT"
sudo apt install git --yes
if [ ! -f ~/.gitconfig ]; then
echo "-------------------------------------------------------------------------------"
echo "GITCONFIG"
echo "Retrieving lalmat's .gitconfig :"
curl https://gist.githubusercontent.com/lalmat/f1c392ae91d1d4361d4c2b2fc69f6515/raw/3b9e3b8a9bbac39ed6b9ed358382a30eee595203/.gitconfig > ~/.gitconfig
echo "Configuring .gitconfig :"
read -p "Enter your Fullname : " USER_FULLNAME
sed -i -e "s/USER_FULLNAME/${USER_FULLNAME}/g" ~/.gitconfig
read -p "Enter your E-mail : " USER_EMAIL
sed -i -e "s/USER_EMAIL/${USER_EMAIL}/g" ~/.gitconfig
fi
echo "-------------------------------------------------------------------------------"
echo "Installing Ansible"
sudo apt install software-properties-common --yes
sudo apt install ansible --yes
echo "-------------------------------------------------------------------------------"
echo "Ansible ready, just start your ansible pull"