Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
73c5d2a952 | |||
69e676027c |
@ -2,7 +2,7 @@ package:
|
|||||||
squid:
|
squid:
|
||||||
installed: true
|
installed: true
|
||||||
addr:
|
addr:
|
||||||
tcp://192.168.99.99:8080:
|
tcp://192.168.99.99:8080:
|
||||||
reachable: true
|
reachable: true
|
||||||
timeout: 500
|
timeout: 500
|
||||||
port:
|
port:
|
||||||
@ -10,6 +10,7 @@ port:
|
|||||||
listening: true
|
listening: true
|
||||||
ip:
|
ip:
|
||||||
- '::'
|
- '::'
|
||||||
|
service:
|
||||||
squid:
|
squid:
|
||||||
enabled: true
|
enabled: true
|
||||||
running: true
|
running: true
|
||||||
@ -24,19 +25,17 @@ 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
|
||||||
allow-insecure: false
|
allow-insecure: false
|
||||||
no-follow-redirects: false
|
no-follow-redirects: false
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
body: []
|
body: []
|
||||||
|
21
pull-config
21
pull-config
@ -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
|
||||||
|
Reference in New Issue
Block a user