update script

This commit is contained in:
jpwilliam 2023-11-20 10:11:48 -03:00
parent 9299286942
commit 41d084057a
3 changed files with 4 additions and 8 deletions

4
hosts
View File

@ -16,7 +16,3 @@ rocky-4 ansible_host=127.0.0.1 ansible_ssh_private_key_file=~/.ssh/id_ed25519 an
debian debian
rocky rocky
[arista]
ceos1 ansible_host=192.168.128.1
ceos2 ansible_host=192.168.128.2
ceos3 ansible_host=192.168.128.3

View File

@ -5,7 +5,7 @@ Blue='\033[1;34m'
if [ ! -f ~/.ssh/id_ed25519.pub ] if [ ! -f ~/.ssh/id_ed25519.pub ]
then then
echo -e '$RED Veuillez créer une clé assymétrique ssh ! $NC' echo -e "$Red Veuillez créer une clé assymétrique ssh ! $NC"
exit 1 exit 1
else else
if [ $(id -u) -eq 0 ] if [ $(id -u) -eq 0 ]