diff --git a/install_ansible.sh b/install_ansible.sh index 3061e30..92d1a70 100755 --- a/install_ansible.sh +++ b/install_ansible.sh @@ -5,18 +5,18 @@ Blue='\033[1;34m' if [ ! -f ~/.ssh/id_ed25519.pub ] then - echo -e '$REDVeuillez créer une clé assymétrique ssh !$NC' + echo -e '$RED Veuillez créer une clé assymétrique ssh ! $NC' exit 1 else if [ $(id -u) -eq 0 ] then - echo -e "$RedCe script doit être lancé en tant qu'utilisateur appartenant au groupe sudo$NC" + echo -e "$Red Ce script doit être lancé en tant qu'utilisateur appartenant au groupe sudo $NC" exit 1 fi fi -echo -e "$Red#################################################" +echo -e "$Red #################################################" echo -e "Install packages" -echo -e "#################################################$NC" +echo -e "################################################# $NC" sudo apt install -y jupyter python3-virtualenv python3-setuptools build-essential libssl-dev libffi-dev python3-dev libkrb5-dev sshpass yamllint python3-pip apt-transport-https ca-certificates curl gnupg2 software-properties-common if [ ! -d /etc/ansible ] then @@ -48,9 +48,9 @@ pip3 install --upgrade git+https://github.com/networkop/docker-topo.git #source ~/.profile #ansible-galaxy collection install arista.eos #ansible-galaxy collection install community.general -echo -e "$Red#################################################" +echo -e "$Red #################################################" echo -e "Install docker-ce" -echo -e "#################################################$NC" +echo -e "################################################# $NC" sudo curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg sudo echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list sudo apt update @@ -60,6 +60,6 @@ sudo systemctl enable docker sudo usermod -a -G docker $USER source ~/.bashrc source ~/.profile -echo -e "$Red#################################################" +echo -e "$Red #################################################" echo -e "Veuillez vous déconnecter de votre session !" -echo -e "#################################################$NC" \ No newline at end of file +echo -e "################################################# $NC" \ No newline at end of file