fixed ip address for vdg

This commit is contained in:
Gilles Mouchet 2025-10-09 10:37:25 +02:00
parent bd1bdfdeb7
commit 64f35a0947
3 changed files with 14 additions and 14 deletions

View File

@ -38,11 +38,11 @@ case $prog_name in
;;
vdg-ip)
# check if you are vdg network
ping -c2 proxy.ville-geneve.ch > /dev/null 2>&1 #2>&1 >/dev/null
if [ "$?" -ne "0" ]; then
echo "You are not in VdG network"
exit 1
fi
# ping -c2 proxy.ville-geneve.ch > /dev/null 2>&1 #2>&1 >/dev/null
# if [ "$?" -ne "0" ]; then
# echo "You are not in VdG network"
# exit 1
# fi
# create inventory file
echo -e "[vdg]\nlocalhost" > inventory
ansible-playbook -l vdg -i inventory changeIp.yml

View File

@ -78,13 +78,13 @@
copy:
src: os/proxy.conf
dest: /etc/systemd/system/docker.service.d/proxy.conf
- name: get root VDG CA
get_url:
url: "http://intranet.ville-ge.ch/certs/{{ item }}"
dest: "/etc/pki/ca-trust/source/anchors/{{ item }}"
with_items:
- rootcavdg_ROOTVDG-CA.crt
- adsubca.crt
# - name: get root VDG CA
# get_url:
# url: "http://intranet.ville-ge.ch/certs/{{ item }}"
# dest: "/etc/pki/ca-trust/source/anchors/{{ item }}"
# with_items:
# - rootcavdg_ROOTVDG-CA.crt
# - adsubca.crt
- name: update ca trust
shell: update-ca-trust
changed_when: false

View File

@ -1,6 +1,6 @@
new_ip: 10.10.10.1
new_ip: 10.10.10.5
new_gw:
new_dns: 10.10.10.1
new_dns: 10.10.10.5
new_search: stage-ge.org
reverse_zone: 10.10.10