divers: inst-depl, gsbboot,

This commit is contained in:
“Albert
2021-04-01 15:46:19 +02:00
parent 3b6da78d7c
commit c391a3dc39
5 changed files with 114 additions and 41 deletions

View File

@@ -2,31 +2,15 @@
if [ -z ${UREP+x} ]; then
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2021.git
else
echo "var is set to '$var'"
fi
REPO=$(basename ${UREP})
dir=/root/tools/ansible
host=depl
hostf=$host.sio.lan
repo=gsb
[ -e $dir ] || mkdir -p $dir
[ -e "${dir}" ] || mkdir -p "${dir}"
#grep $hostf /etc/hosts > /dev/null || echo "10.121.38.10 $hostf $host" >> /etc/hosts
cd $dir
cd "${dir}" || exit 1
hostname > hosts
#git clone http://$host/$repo.git
#cd $repo
#git pull
#ansible-playbook -c local -i 'localhost,' $(hostname).yml
#ansible-pull -i $dir/hosts -d $repo -U "${UREP}"
ansible-pull -i $dir/hosts -U "${UREP}"
ansible-pull -i "${dir}/hosts" -U "${UREP}"
exit 0