Compare commits

..

2 Commits

Author SHA1 Message Date
tl
73c5d2a952 adapt s-proxy.yml bugs divers 2021-01-06 11:32:38 +01:00
sio
69e676027c adapt pull-config pout gitea distant 2021-01-06 09:49:04 +01:00
2 changed files with 17 additions and 21 deletions

View File

@ -10,6 +10,7 @@ port:
listening: true listening: true
ip: ip:
- '::' - '::'
service:
squid: squid:
enabled: true enabled: true
running: true running: true
@ -24,15 +25,13 @@ interface:
enp0s3: enp0s3:
exists: true exists: true
addrs: addrs:
- 192.168.99.1/24 - 192.168.99.2/24
enp0s8 mtu: 1500
exists: true
addrs:
- 192.168.99.1/24
enp0s8: enp0s8:
exists: true exists: true
addrs: addrs:
- 172.16.0.1/24 - 172.16.0.2/24
mtu: 1500
http: http:
http://localhost/wpad.dat: http://localhost/wpad.dat:
status: 200 status: 200

View File

@ -1,24 +1,21 @@
#!/bin/bash #!/bin/bash
if [ -z ${UREP+x} ]; then
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2021.git
fi
REPO=$(basename ${UREP})
dir=/root/tools/ansible dir=/root/tools/ansible
host=depl host=depl
hostf=$host.sio.lan 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 #grep $hostf /etc/hosts > /dev/null || echo "10.121.38.10 $hostf $host" >> /etc/hosts
cd $dir cd ${dir}
hostname > hosts hostname > hosts
ansible-pull -i ${dir}/hosts -U "${UREP}"
#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 http://$host/$repo.git
exit 0 exit 0