fixed ip address for vdg
This commit is contained in:
parent
bd1bdfdeb7
commit
64f35a0947
10
changeIp.sh
10
changeIp.sh
@ -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
|
||||
|
||||
14
changeIp.yml
14
changeIp.yml
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user